##Typical syslog.conf for all linux variants This document contains the list of typical & most essential logs to be generated with syslog including items which are not out-of the box with ubunut/centos You can use this to edit your syslog.conf file. Just copy the content in type column, put it in the file & put the content in Log File column in corresponding row with a space or a tab.
Type | Log File | Remarks |
---|---|---|
kern.err | /var/log/system/kernel.err | Every logs of severity 3 to 0. Logs error, critical, alert & emergency messages related to kernel. |
daemon.=info;daemon.=notice;daemon.=warning | /var/log/system/daemon/daemon.info | Logs info, notice & warning messages related to system daemons like bro, httpd, crond etc |
daemon.err | /var/log/system/daemon/daemon.err | Logs all messages equal to & higher than error priority from daemons |
user.* | /var/log/system/user.log | All logs from user to the destination file |
kern.crit | @remotehost | /var/log/system/kern.crit |
auth.crit | /var/log/system/auth/auth.crit | Logs all messages >= level 2 to destination file |
auth.=debug;=info;=notice;=warn;=err | /var/log/system/auth/auth.message | Logs all messages other than Critical alert & emergency from auth to destination file. |
authpriv.err | /var/log/system/authpriv | Logs all messages of priority >=3 from auth priv. |
ntp.warning | /var/log/system/ntp | Logs NTP messages >= 4 |
cron.=debug;=info;=notice;=warn | /var/log/system/cron/cron.warn | Logs CRON messages of priority < 3 |
Cron.err | /var/log/system/cron/cron.crit | Logs CRON messages of priority >= 3 |
mail.* | /var/log/system/mail.log | Logs all messages related to mail. |