5 kx # /etc/syslog.conf
5 kx # For info about the format of this file, see "man syslog.conf"
5 kx # and /usr/share/doc/sysklogd/README.md. Note the '-' prefixing some
5 kx # of these entries; this omits syncing the file after every logging.
5 kx # In the event of a crash, some log information might be lost, so
5 kx # if this is a concern to you then you might want to remove the '-'.
5 kx # Be advised this will cause a performance loss if you're using
5 kx # programs that do heavy logging.
5 kx
5 kx # Uncomment to see kernel messages 'err' or higher on the console.
5 kx # Note that this is disabled by default because the kernel has defined
5 kx # the "No irq handler for vector" message as 'emerg' (the highest, your
5 kx # system should be considered unusable) level and will spam the console
5 kx # during boot. But perhaps you can live with that in order to see the
5 kx # other kernel messages...
5 kx #kern.err /dev/console
5 kx
5 kx # Log anything 'info' or higher, but lower than 'warn'.
5 kx # Exclude authpriv, cron, mail, and news. These are logged elsewhere.
5 kx *.info;*.!warn;\
5 kx authpriv.none;cron.none;mail.none;news.none -/var/log/messages
5 kx
5 kx # Log anything 'warn' or higher.
5 kx # Exclude authpriv, cron, mail, and news. These are logged elsewhere.
5 kx *.warn;\
5 kx authpriv.none;cron.none;mail.none;news.none -/var/log/syslog
5 kx
5 kx # Debugging information is logged here:
5 kx *.=debug -/var/log/debug
5 kx
5 kx # Private authentication message logging:
5 kx authpriv.* -/var/log/secure
5 kx
5 kx # Cron related logs:
5 kx cron.* -/var/log/cron
5 kx
5 kx # Mail related logs:
5 kx mail.* -/var/log/maillog
5 kx
5 kx # Emergency level messages go to all users:
5 kx *.emerg *
5 kx
5 kx # Uncomment to log news and uucp errors:
5 kx #uucp,news.crit -/var/log/spooler
5 kx
5 kx # Uncomment these if you run a news server and would like to log related
5 kx # messages:
5 kx #news.=crit -/var/log/news/news.crit
5 kx #news.=err -/var/log/news/news.err
5 kx #news.notice -/var/log/news/news.notice
5 kx
5 kx # Include all config files in /etc/syslog.d/:
5 kx include /etc/syslog.d/*.conf