summaryrefslogtreecommitdiff
path: root/recipes/snort/files/logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/snort/files/logrotate')
-rw-r--r--recipes/snort/files/logrotate12
1 files changed, 12 insertions, 0 deletions
diff --git a/recipes/snort/files/logrotate b/recipes/snort/files/logrotate
new file mode 100644
index 0000000000..ef3e4afac8
--- /dev/null
+++ b/recipes/snort/files/logrotate
@@ -0,0 +1,12 @@
+/var/log/snort/*.log /var/log/snort/alert {
+ size 1M
+ missingok
+ compress
+ delaycompress
+ rotate 10
+ sharedscripts
+ postrotate
+ /etc/init.d/snort restart
+ endscript
+}
+