linux - AWS Opsworks: logrotate it runs automatically? -


i have configured own logrotate(app logs) , editing(nginx logs), created in recipes(chef). question is: logrotate runs automatically?

i ask because have configurations in logs can not exceed 5mb in size, , have logs sizes of 100mb.

show crontabs root:

crontab -l no crontab root 

/etc/logrotate.conf

weekly su root syslog rotate 4 create include /etc/logrotate.d /var/log/wtmp {     missingok     monthly     create 0664 root utmp     rotate 1 }  /var/log/btmp {     missingok     monthly     create 0660 root utmp     rotate 1 } 

usually, logrotate run daily cron job. add size 5m , daily logrotate config logs you're interested in.

there potential log grow past 5m between daily logrotate runs. tuned lowering size value and/or running logrotate more often.

check man logrotate more details.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -