Comments on: How to Setup and Manage Log Rotation Using Logrotate in Linux https://www.tecmint.com/install-logrotate-to-manage-log-rotation-in-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Mon, 31 May 2021 15:06:06 +0000 hourly 1 By: Blake https://www.tecmint.com/install-logrotate-to-manage-log-rotation-in-linux/comment-page-1/#comment-1513764 Mon, 31 May 2021 15:06:06 +0000 http://www.tecmint.com/?p=22385#comment-1513764 Thanks, worked well for me! I just wanted to point out in this line from the article:

/var/log/apache2/* {

..if you just use an asterisk * it seems like logrotate will rotate any files, even previously rotated files. To correct this, I had to use *.log.

]]>
By: Sarjit Singh https://www.tecmint.com/install-logrotate-to-manage-log-rotation-in-linux/comment-page-1/#comment-1104919 Tue, 26 Feb 2019 05:45:05 +0000 http://www.tecmint.com/?p=22385#comment-1104919 How can I setup logrotate to rotate the logs hourly?
There is no option and minimum frequency is daily.

]]>
By: Siva https://www.tecmint.com/install-logrotate-to-manage-log-rotation-in-linux/comment-page-1/#comment-1049070 Tue, 16 Oct 2018 11:35:53 +0000 http://www.tecmint.com/?p=22385#comment-1049070 Hi log rotate is not working, please help me.

/opt/var/foo.log {
    copytruncate
    daily
    dateext
    rotate 3
    compress
    missingok
    size 10M
}

It is appending data on same file, now the file size reached 6GB how can I fix it

]]>
By: Ravi Saive https://www.tecmint.com/install-logrotate-to-manage-log-rotation-in-linux/comment-page-1/#comment-1038113 Fri, 21 Sep 2018 06:30:11 +0000 http://www.tecmint.com/?p=22385#comment-1038113 In reply to Kumar P.

@Kumar

Yes, you can add your own apache website log path in this file..

]]>
By: Kumar P https://www.tecmint.com/install-logrotate-to-manage-log-rotation-in-linux/comment-page-1/#comment-1038100 Fri, 21 Sep 2018 05:22:41 +0000 http://www.tecmint.com/?p=22385#comment-1038100 Hello Gabriel A. Cánepa,

Are we allowed to add our own log path of apache2 here ? with new file on /etc/logrotate.d/mylog with my own log path ?

]]>