This commit is contained in:
m0duspwnens
2021-02-18 09:51:40 -05:00
parent 4b07d5e457
commit 74ca4487de

View File

@@ -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)