6c202919b3
* Rename 'ACSFileFormat' -> 'SONiCFileFormat' * Rename '00-acs.conf' -> '00-sonic.conf' * Add logrotate.d and systemd-journald config files to image * Log all SONiC process messages to /var/log/syslog; prevent duplicate logging to /var/log/messages * Do not redirect cron and daemon logs to their own files, let them log to /var/log/syslog * Log all teamd messages to /var/log/teamd.log; Add more SONiC program names to SONiC rules clause * Remove duplicate code by condensing quagga programs into a list; Fix teamd log rule * Kernel and LPR messages no longer getting duplicated to their own log files * Now calling logrotate every minute via cron job * Need full path to logrotate in cron job * Add '.log' suffix to wildcards, otherwise logrotate will rotate already-rotated logs (e.g., bgpd.log.1.1.1.1.1...) * Add microsecond granularity to syslog messages * Don't overwrite system crontab, instead, install additional logrotate crontab file into /etc/cron.d * Removed incomplete concept of per-process SONiC logs. We can revisit again later
72 lines
2.1 KiB
Plaintext
72 lines
2.1 KiB
Plaintext
#
|
|
# First some standard log files. Log by facility.
|
|
#
|
|
auth,authpriv.* /var/log/auth.log
|
|
*.*;auth,authpriv.none -/var/log/syslog
|
|
# Do not redirect cron, daemon, kernel or lpr logs to
|
|
# their own files. Let them log to /var/log/syslog
|
|
#cron.* /var/log/cron.log
|
|
#daemon.* -/var/log/daemon.log
|
|
#kern.* -/var/log/kern.log
|
|
#kern.* -/var/persist/log/kern.log
|
|
#lpr.* -/var/log/lpr.log
|
|
mail.* -/var/log/mail.log
|
|
user.* -/var/log/user.log
|
|
|
|
#
|
|
# Logging for the mail system. Split it up so that
|
|
# it is easy to write scripts to parse these files.
|
|
#
|
|
mail.info -/var/log/mail.info
|
|
mail.warn -/var/log/mail.warn
|
|
mail.err /var/log/mail.err
|
|
|
|
#
|
|
# Logging for INN news system.
|
|
#
|
|
news.crit /var/log/news/news.crit
|
|
news.err /var/log/news/news.err
|
|
news.notice -/var/log/news/news.notice
|
|
|
|
#
|
|
# Some "catch-all" log files.
|
|
#
|
|
*.=debug;\
|
|
auth,authpriv.none;\
|
|
news.none;mail.none -/var/log/debug
|
|
#
|
|
# Removed as duplicates:
|
|
#*.=info;*.=notice;*.=warn;\
|
|
# auth,authpriv.none;\
|
|
# cron,daemon.none;\
|
|
# mail,news.none -/var/log/messages
|
|
#
|
|
*.=crit;*.=alert;*.=emerg -/var/persist/log/alarms
|
|
#
|
|
# Emergencies are sent to everybody logged in.
|
|
#
|
|
*.emerg :omusrmsg:*
|
|
|
|
#
|
|
# I like to have messages displayed on the console, but only on a virtual
|
|
# console I usually leave idle.
|
|
#
|
|
#daemon,mail.*;\
|
|
# news.=crit;news.=err;news.=notice;\
|
|
# *.=debug;*.=info;\
|
|
# *.=notice;*.=warn /dev/tty8
|
|
|
|
# The named pipe /dev/xconsole is for the `xconsole' utility. To use it,
|
|
# you must invoke `xconsole' with the `-file' option:
|
|
#
|
|
# $ xconsole -file /dev/xconsole [...]
|
|
#
|
|
# NOTE: adjust the list below, or you'll go crazy if you have a reasonably
|
|
# busy site..
|
|
#
|
|
daemon.*;mail.*;\
|
|
news.err;\
|
|
*.=debug;*.=info;\
|
|
*.=notice;*.=warn |/dev/xconsole
|
|
|