Erinevus lehekülje "Logi" redaktsioonide vahel
Allikas: Kuutõrvaja
(New page: ===sissejuhatus=== logimist korraldab serveris tarkvara nimega syslog levinud on ka täiustatud logimootor nimega syslog-ng ===logiserveri seadistus=== # options options { ...) |
|||
4. rida: | 4. rida: | ||
+ | ===logikliendi seadistus=== | ||
− | |||
+ | ===logiserveri seadistus=== | ||
− | + | pärast syslog-ng installi lisame seadistusfailine näiteks sellise osa | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | source net { | |
− | + | udp(); | |
− | + | }; | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }; | ||
− | destination | + | |
− | + | destination remote { | |
+ | file("/log/serverid/$FULLHOST/messages.log" | ||
owner(root) group(wheel) perm(0600) dir_perm(0700) create_dirs(yes)); | owner(root) group(wheel) perm(0600) dir_perm(0700) create_dirs(yes)); | ||
− | }; | + | }; |
+ | |||
+ | destination remote_auth { | ||
+ | file("/log/serverid/$FULLHOST/auth.log" | ||
+ | owner(root) group(wheel) perm(0600) dir_perm(0700) create_dirs(yes)); | ||
+ | }; | ||
− | destination swatch { | + | destination remote_mail { |
− | + | file("/log/serverid/$FULLHOST/mail.log" | |
− | }; | + | owner(root) group(wheel) perm(0600) dir_perm(0700) create_dirs(yes)); |
+ | }; | ||
+ | |||
+ | destination remote_http_error { | ||
+ | file("/log/serverid/$FULLHOST/http_error.log" | ||
+ | owner(root) group(wheel) perm(0600) dir_perm(0700) create_dirs(yes)); | ||
+ | }; | ||
+ | |||
+ | destination remote_http_access { | ||
+ | file("/log/serverid/$FULLHOST/http_access.log" | ||
+ | owner(root) group(wheel) perm(0600) dir_perm(0700) create_dirs(yes)); | ||
+ | }; | ||
+ | |||
+ | |||
+ | destination swatch { | ||
+ | program("/usr/local/bin/swatch --read-pipe=\"cat /dev/fd/0\""); | ||
+ | }; |
Redaktsioon: 11. juuni 2007, kell 13:36
sissejuhatus
logimist korraldab serveris tarkvara nimega syslog levinud on ka täiustatud logimootor nimega syslog-ng
logikliendi seadistus
logiserveri seadistus
pärast syslog-ng installi lisame seadistusfailine näiteks sellise osa
source net { udp(); };
destination remote { file("/log/serverid/$FULLHOST/messages.log" owner(root) group(wheel) perm(0600) dir_perm(0700) create_dirs(yes)); };
destination remote_auth { file("/log/serverid/$FULLHOST/auth.log" owner(root) group(wheel) perm(0600) dir_perm(0700) create_dirs(yes)); };
destination remote_mail { file("/log/serverid/$FULLHOST/mail.log" owner(root) group(wheel) perm(0600) dir_perm(0700) create_dirs(yes)); }; destination remote_http_error { file("/log/serverid/$FULLHOST/http_error.log" owner(root) group(wheel) perm(0600) dir_perm(0700) create_dirs(yes)); }; destination remote_http_access { file("/log/serverid/$FULLHOST/http_access.log" owner(root) group(wheel) perm(0600) dir_perm(0700) create_dirs(yes)); }; destination swatch { program("/usr/local/bin/swatch --read-pipe=\"cat /dev/fd/0\""); };