I have the following logrotate configuration 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 a syntax check for a file, I get 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 is wrong in my configuration file?
source
share