summaryrefslogtreecommitdiffstats
path: root/etc/suricata.logrotate.in
diff options
context:
space:
mode:
Diffstat (limited to 'etc/suricata.logrotate.in')
-rw-r--r--etc/suricata.logrotate.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/etc/suricata.logrotate.in b/etc/suricata.logrotate.in
new file mode 100644
index 0000000..c5e9ef1
--- /dev/null
+++ b/etc/suricata.logrotate.in
@@ -0,0 +1,13 @@
+# Sample /etc/logrotate.d/suricata configuration file.
+@e_logdir@*.log @e_logdir@*.json {
+ daily
+ missingok
+ rotate 5
+ compress
+ delaycompress
+ minsize 500k
+ sharedscripts
+ postrotate
+ /bin/kill -HUP `cat @e_rundir@suricata.pid 2> /dev/null` 2> /dev/null || true
+ endscript
+}