Hi,
I am logging news (leafnode/fetchnews/texpire) from syslog.conf as follows:
Code:
news.info -/var/log/news
with no trouble. But I am unable to get logrotate to follow any instructions with this file. In logrotate.conf I have:
Code:
/var/log/news {
daily
rotate 4
create
postrotate
kill -1 `cat /var/run/syslogd.pid`
endscript
compress
}
with absolutely no result. When I test with:
Code:
logrotate -dv /var/log/news
It chokes on the first actual word in the logfile (which is 'January':
Code:
[....]
error: /var/log/news:474 unknown option 'Jan' -- ignoring line
error: /var/log/news:474 unexpected text
error: /var/log/news:475 unknown option 'Jan' -- ignoring line
error: /var/log/news:475 unexpected text
error: /var/log/news:476 unknown option 'Jan' -- ignoring line
error: /var/log/news:476 unexpected text
error: /var/log/news:477 unknown option 'Jan' -- ignoring line
error: /var/log/news:477 unexpected text
error: /var/log/news:478 unknown option 'Jan' -- ignoring line
error: /var/log/news:478 unexpected text
Handling 0 logs
I have obviously missed something very basic and I am keen to know what :-)
Andrew