mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-27 06:57:50 +02: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
|
echo $$ > $lf
|
||||||
|
|
||||||
MAXEVES={{ salt['pillar.get']('suricata:cleanup:eve_json', 20) }}
|
MAXEVES={{ salt['pillar.get']('suricata:cleanup:eve_json', 20) }}
|
||||||
|
if [ "$MAXEVES" -lt 2 ]; then
|
||||||
|
MAXEVES=2
|
||||||
|
fi
|
||||||
|
|
||||||
# Find eve files and remove them
|
# Find eve files and remove them
|
||||||
NUMEVES=$(find /nsm/suricata/ -type f -name "eve-*.json" | wc -l)
|
NUMEVES=$(find /nsm/suricata/ -type f -name "eve-*.json" | wc -l)
|
||||||
|
|||||||
Reference in New Issue
Block a user