mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Rotate suri stats log hourly
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Gzip the eve logs
|
# 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
|
/usr/sbin/logrotate -f /opt/so/conf/suricata/suri-rotate.conf > /dev/null 2>&1
|
||||||
|
|
||||||
# TODO Add stats log
|
|
||||||
|
|||||||
@@ -168,7 +168,7 @@ surilogrotate:
|
|||||||
/usr/local/bin/surirotate:
|
/usr/local/bin/surirotate:
|
||||||
cron.present:
|
cron.present:
|
||||||
- user: root
|
- user: root
|
||||||
- minute: '6'
|
- minute: '11'
|
||||||
- hour: '*'
|
- hour: '*'
|
||||||
- daymonth: '*'
|
- daymonth: '*'
|
||||||
- month: '*'
|
- month: '*'
|
||||||
|
|||||||
Reference in New Issue
Block a user