how-to-setup-and-use-logrotate.md 799 B


Title: "How to setup and use logrotate" Date: 2016-08-25 14:59:53 Categories: [data processing] tags: [centos, debian, fedora, logrotate, rhel, ubuntu] Slug: how-to-setup-and-use-logrotate

Authors: sedlav

If logs were kept forever, they would eventually end up filling the filesystem where /var/log resides. In order to prevent that, the system administrator can use a nice utility called logrotate to clean up the logs on a periodic basis.

logrotate is designed to ease administration of systems that generate large numbers of log files. It allows automatic rotation, compression, removal, and mailing of log files. Each log file may be handled daily, weekly, monthly, or when it grows too large.

Link