diff options
author | Christian Breunig <christian@breunig.cc> | 2024-05-23 21:56:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-23 21:56:42 +0200 |
commit | 9f9fb8d63f920f90ff7b299e4f70a5325fee95f3 (patch) | |
tree | 316959f83eaf5f6096260c65e00c929bcd296af1 /data/templates/ids/suricata_logrotate.j2 | |
parent | 3e69d8bbe01b7d03c894e21ac322974799098676 (diff) | |
parent | 01464a6069fa7cf02d5545c02ed03fa69679c32c (diff) | |
download | vyos-1x-9f9fb8d63f920f90ff7b299e4f70a5325fee95f3.tar.gz vyos-1x-9f9fb8d63f920f90ff7b299e4f70a5325fee95f3.zip |
Merge pull request #3399 from 0xThiebaut/suricata
suricata: T751: Initial support for suricata
Diffstat (limited to 'data/templates/ids/suricata_logrotate.j2')
-rw-r--r-- | data/templates/ids/suricata_logrotate.j2 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/data/templates/ids/suricata_logrotate.j2 b/data/templates/ids/suricata_logrotate.j2 new file mode 100644 index 000000000..62773fc68 --- /dev/null +++ b/data/templates/ids/suricata_logrotate.j2 @@ -0,0 +1,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 +} |