9d5adb993a
- Force log rotation at size thresholds only (no longer also rotating logs daily), allowing for more consistent archived log size - Eliminate remaining duplicate log messages - Cron facility now only logs to cron.log (was also logging to syslog) - Debug, mail, news and user log facilities only log to syslog; no longer creating separate log files for these facilities - Cron job that calls logrotate every minute now uses the main /etc/logrotate.conf file so as to check/rotate all logs every minute, not just the logs specified in the rsyslog file. Also redirecting output of this command to /dev/null to prevent "(CRON) info (No MTA installed, discarding output)" messages in cron.log due to lack of a mail service - Delete archive files based on remaining /var/log partition space. Note that this solution currently requires a minimum /var/log partition size of 32MB to function correctly - Update sonic-sairedis and sonic-swss submodules to incorporate recording file name changes - Add .screen file to .gitignore (unrelated)
28 lines
802 B
Plaintext
28 lines
802 B
Plaintext
#
|
|
# First some standard log files. Log by facility.
|
|
#
|
|
|
|
# Log all facilities to /var/log/syslog except cron, auth
|
|
# and authpriv. They are noisy - log them to their own files
|
|
*.*;cron,auth,authpriv.none -/var/log/syslog
|
|
auth,authpriv.* /var/log/auth.log
|
|
cron.* /var/log/cron.log
|
|
|
|
#
|
|
# Emergencies are sent to everybody logged in.
|
|
#
|
|
*.emerg :omusrmsg:*
|
|
|
|
# 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
|