Hi All,
I am using router which was running on openwrt 15.05
Requirement:
1.logging in the device using rsyslog
2.rotate logs when file size exceed 5MB
Problem:
logrotation (devlog.1.gz) happens but the new file (devlog) was not updating.
Logrotate Configuration:
/var/log/devlog
{
size=5M
rotate 5
create 0644 root root
compress
delaycompress
postrotate
/etc/init.d/rsyslog restart
endscript
}
Please suggest some solutions to resolve this issue.
Thanks.