Forum

Logrotate Error

Newbie
8 November 2016, 13:04
Hello,

yesterday I'd make a fresh install on Debian 8 with Hiawatha. At night i got a Mail from cron with this
/etc/cron.daily/logrotate:
error: hiawatha:9 unexpected log filename
error: found error in /var/log/hiawatha/access.log , skipping

I'd search a solution for this problem and i've found a workaround.
When I fill this
/var/log/hiawatha/*.log {
rotate 7
weekly
compress
copytruncate
missingok
notifempty
}

in the file /etc/logrotate.d/hiawatha, then logrotate works correct without errormessage. But is this the right solution?
Hugo Leisink
8 November 2016, 22:35
If it works and does what you want, then yes.
This topic has been closed.