This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
build:logging [2018/05/28 02:03] SLUUG Administration [syslog.conf] |
build:logging [2018/05/28 02:10] (current) SLUUG Administration [logrotate.conf] |
||
---|---|---|---|
Line 27: | Line 27: | ||
Edit ''/etc/logrotate.conf'' to change the ''rotate'' option for ''/var/log/wtmp'' from ''1'' to ''25'', and ''/var/log/btmp'' from ''1'' to ''13''. | Edit ''/etc/logrotate.conf'' to change the ''rotate'' option for ''/var/log/wtmp'' from ''1'' to ''25'', and ''/var/log/btmp'' from ''1'' to ''13''. | ||
+ | === Later changes and corrections === | ||
+ | Add option ''dateext'' to change the naming convention of adding | ||
+ | generation numbers ".1", ".2", etc. to the "-yyyymmdd" format. | ||
+ | Also manually rename all existing log files to the new format. | ||
+ | Note this is the default in later releases. | ||
+ | |||
+ | Fix incorrect permissions for the ''/var/log/btmp'' entry | ||
+ | from ''0660'' to ''0600''. | ||
+ | Also chmod existing files to make the same change. | ||
+ | This is a well known bug fixed in later releases, but should be verified. | ||
==== syslog.conf ==== | ==== syslog.conf ==== | ||
Line 109: | Line 119: | ||
*.=debug;*.=info;\ | *.=debug;*.=info;\ | ||
*.=notice;*.=warn |/dev/xconsole | *.=notice;*.=warn |/dev/xconsole | ||
- | |||
- | === Later changes and corrections === | ||
- | |||
- | Add option ''dateext'' to change the naming convention of adding | ||
- | generation numbers ".1", ".2", etc. to the "-yyyymmdd" format. | ||
- | Also manually rename all existing log files to the new format. | ||
- | Note this is the default in later releases. | ||
- | |||
- | Fix incorrect permissions for the ''/var/log/btmp'' entry | ||
- | from ''0660'' to ''0600''. | ||
- | Also chmod existing files to make the same change. | ||
- | This is a well known bug fixed in later releases, but should be verified. | ||
===== Reporting ===== | ===== Reporting ===== | ||