logrotate

Collection page for logrotate related content.

logrotate (linux command)

Manual page and help for the logrotate linux command. The purpose of logrotate is to facilitate the administration of systems that produce a large number of log files. This allows log files to be automatically rotated, compressed, removed, and emailed. Each log file can be rotated on a daily, weekly, monthly basis, or when the file size reaches a certain level.

Installing Debian 10 (Buster) LAMP Server v1.0 (page 3)

botond published 2019/11/19, k - 14:30 time
With the help of LAMP systems, we can run dynamic web pages on our server or even on our home computer. In this description, we create a LAMP server for Debian 10 (Buster) with the following components: MariaDB 10.3.18, Apache 2.4.38, PHP 7.3 and phpMyAdmin 4.9.1. On this page, we will create a separate PHP-FPM pool for phpMyAdmin in which we will run the web database management interface.

Rotate and compress log files with Logrotate

botond published Jan. 2019, 04, 17:23 p.m. time
If we run many services on our server, comprehensive and regular scanning of our log files becomes difficult. A useful solution is the logrotate command, which automatically rotates log files generated by various programs, compresses older ones and deletes older ones than the specified time, as well as the ability to send email notifications. With the use of the program, we no longer have to worry about the log files being buried after a few days or weeks of absence, because they are waiting in an orderly state for us to review them. In this description we will get acquainted with the general use of the Logrotate program.