AW: Syslog-ng log grows until forever -> device crash

Follow up to: https://forum.openwrt.org/t/syslog-ng-log-grows-until-forever-device-crash

@dl12345

I've now set it up as recommended. I've scripts that rely on "logread -f" outputting new log lines permanently. To get this go on correctly after log rotation, I've added the option "copytruncate".

I did my tests with:

logrotate -f /etc/logrotate.d/messages

How does the OS know when/how to execute "logrotate" for the configured "messages" file once a day? Do I need a cron job for this? Could you please post me how you did this as an example? Thank you very much for your help.

My current settings file for logrotate:

/var/log/messages {
   missingok
   rotate 7
   daily
   copytruncate
   compress
   postrotate
	 /usr/sbin/syslog-ng-ctl reopen
   endscript
}

3 posts were merged into an existing topic: Syslog-ng log grows until forever -> device crash