Project

General

Profile


This documentation is no longer maintained and exists for historical purposes. The current documentation is located at http://suricata.readthedocs.io/.


Log Rotation

Starting with Suricata version 2.0.2 (#1200), log rotation is made a lot easier. A HUP signal sent to Suricata will force it to reopen the logfiles.

Example logrotate file:

/var/log/suricata/*.log /var/log/suricata/*.json
{
    rotate 3
    missingok
    nocompress
    create
    sharedscripts
    postrotate
            /bin/kill -HUP $(cat /var/run/suricata.pid)
    endscript
}

locked