summaryrefslogtreecommitdiff
path: root/data/templates/ids/suricata_logrotate.j2
blob: 62773fc6872e578527b59b9049e0518e9364f2aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{% for filename in [(log.eve.filename | default("eve.json"))] %}
{{ filename if filename.startswith("/") else ("/var/log/suricata/" + filename) }}
{% endfor %}{
    weekly
    dateext
    dateformat _%Y-%m-%d_%H-%M-%S
    maxsize 10M
    rotate 10
    missingok
    nocompress
    nocreate
    nomail
    sharedscripts
    postrotate
            /bin/kill -HUP `cat /run/suricata/suricata.pid 2>/dev/null` 2>/dev/null || true
    endscript
}