Well, today around lunch I had reports of problems that turned out to be due to the IPFire disk being completely full – with the /var/log/suricata/stats.log Suricata log file being 1.5 gigabytes. Not the first time this has happened.
Is it possible to schedule the Suricata log rotation to occur every night?
That’s weird – the gzips only seem to be created once a week at most, although I have been forced to remove some stats.log files before rotation due to a full disk – this doesn’t explain all of the gaps, however.
Both is right.
logrotate is called every night.
But the period is defined in /etc/logrotate.conf.
Default in IPFire is to hold 1 year with rotation every week ( 52 instances ).
Great! Changing the rotation for Suricata to Daily (in /etc/logrotate.conf) also solved the issue for now, but I’m guessing it might have other repercussions…