I have the following logrorate config for my iptables:
/var/log/iptables.log {
daily
missingok
rotate 3
compress
notifempty
delaycompress
postrotate
/usr/sbin/service rsynclog restart > /dev/null
endscript
}
When I try to issue checking for file syntax I the following error:
sudo logrotate -vf /etc/logrotate.d/iptables
reading config file iptables
reading config info for /var/log/iptables.log
error: iptables:1 lines must begin with a keyword or a filename (possibly in double quotes)
What's wrong in my config file?