mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Rotate suri stats log hourly
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Gzip the eve logs
|
||||
find /nsm/suricata/eve*.json -type f -printf '%T@\t%p\n' | sort -t $'\t' -g | head -n -1 | cut -d $'\t' -f 2- | xargs nice gzip
|
||||
|
||||
# TODO Add stats log
|
||||
/usr/sbin/logrotate -f /opt/so/conf/suricata/suri-rotate.conf > /dev/null 2>&1
|
||||
|
||||
@@ -168,7 +168,7 @@ surilogrotate:
|
||||
/usr/local/bin/surirotate:
|
||||
cron.present:
|
||||
- user: root
|
||||
- minute: '6'
|
||||
- minute: '11'
|
||||
- hour: '*'
|
||||
- daymonth: '*'
|
||||
- month: '*'
|
||||
|
||||
Reference in New Issue
Block a user