aboutsummaryrefslogtreecommitdiffstats
path: root/community/suricata/suricata.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'community/suricata/suricata.logrotate')
-rw-r--r--community/suricata/suricata.logrotate11
1 files changed, 11 insertions, 0 deletions
diff --git a/community/suricata/suricata.logrotate b/community/suricata/suricata.logrotate
new file mode 100644
index 0000000000..f09690a792
--- /dev/null
+++ b/community/suricata/suricata.logrotate
@@ -0,0 +1,11 @@
+/var/log/suricata/*.log /var/log/suricata/*.json
+{
+ rotate 3
+ missingok
+ nocompress
+ create
+ sharedscripts
+ postrotate
+ /bin/kill -HUP $(cat /var/run/suricata/suricata.pid)
+ endscript
+}