mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-01-06 08:13:32 +01:00
ensure at least 2 eve files are kept https://github.com/Security-Onion-Solutions/securityonion/issues/2989
This commit is contained in:
@@ -25,6 +25,9 @@ read lastPID < $lf
|
||||
echo $$ > $lf
|
||||
|
||||
MAXEVES={{ salt['pillar.get']('suricata:cleanup:eve_json', 20) }}
|
||||
if [ "$MAXEVES" -lt 2 ]; then
|
||||
MAXEVES=2
|
||||
fi
|
||||
|
||||
# Find eve files and remove them
|
||||
NUMEVES=$(find /nsm/suricata/ -type f -name "eve-*.json" | wc -l)
|
||||
|
||||
Reference in New Issue
Block a user