Logi
Allikas: Kuutõrvaja
sissejuhatus
logimist korraldab serveris tarkvara nimega syslog levinud on ka täiustatud logimootor nimega syslog-ng
logiserveri seadistus
- options
options {
long_hostnames(off); chain_hostnames(off); sync(0); use_dns(no); keep_hostname(on); stats(43200);
};
- sources
source src { unix-dgram("/var/run/log");
unix-dgram("/var/run/logpriv" perm(0600)); internal(); file("/dev/klog"); };
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\"");
};