Trouble getting logs to autorotate with logrotate

Maxximiliann

New Member
Joined
Apr 9, 2021
Messages
2
Reaction score
0
Credits
17
Ubuntu 20.04.2 LTS
Gnome 3.36.8

Code:
$ logrotate --version
logrotate 3.14.0


It's been impossible to get logs to rotate automatically once they reach a size of 125M. Here's the config file saved to /etc/logrotate.d:

Code:
/home/App/Logs/*.log 
{
    missingok
    size 125M
    rotate 14
    create
}



What's missing?
 


you do not have a time set - has to be daily, weekly or monthly the tool will attempt to rotate the logs on that basis- size sets the minimum size for the rotation to take place each log and will not be rotated until it reaches 125MB.

monthly
missingok
size 125M
rotate 14
compress
create
 
you do not have a time set - has to be daily, weekly or monthly the tool will attempt to rotate the logs on that basis- size sets the minimum size for the rotation to take place each log and will not be rotated until it reaches 125MB.

monthly
missingok
size 125M
rotate 14
compress
create


As it turns out this was the issue but thanks for your suggestions :)
 

Members online


Top