PC Quest: Managing System LogsAug 26, 2000, 12:10 (0 Talkback[s])
(Other stories by Gopi Garge)
WEBINAR: On-demand webcast
How to Boost Database Development Productivity on Linux, Docker, and Kubernetes with Microsoft SQL Server 2017 REGISTER >
[ Thanks to Harry for this link. ]
"If you have a rather busy system, you could get overwhelmed by system logs eating up disk space. Log files are important records of system behavior, system resource usage, application usage, and user access. Every such log file is worth a scan for the unusual and may need to be archived for purposes of accounting."
"Linux provides you with a utility called logrotate, which allows you to implement a log archiving policy for your system. In my opinion, you can't get anything more simple and concise than what logrotate offers you--use it!"
"logrotate rotates and compresses system logs. This is typically found under the directory subtree /var/log/. It also allows you to specify when a log file has to be removed. You can customize logrotate to your liking by editing its configuration files, /etc/logrotate.conf and /etc/logrotate.d. The former is the global configuration file and the latter is a directory that contains specific instructions for various applications. This organization allows selective control over how you might want to handle logs from different applications. The only files for which specific instructions should be present in the global configuration file are /var/log/wtmp and /var/log/lastlog."
0 Talkback[s] (click to add your comment)