log-rotate

Logrotate

Logrotate is a tool is a tool installed by default on linux distributions. It rotates logs automatically but it also compresses or transfers its. It could also suppress obsoletes files. It main config file is: /etc/logrotate.conf If we want to add log files to be rotate automatically by logrotate, we must type some lines of…