mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Telegraf - Fix Suri script so it requires 2 drops in a row
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
SURILOG=$(tac /var/log/suricata/stats.log | grep kernel | head -4)
|
SURILOG=$(tac /var/log/suricata/stats.log | grep kernel | head -4)
|
||||||
CHECKIT=$(echo $SURILOG | grep drop | wc -l)
|
CHECKIT=$(echo $SURILOG | grep -o 'drop' | wc -l)
|
||||||
|
|
||||||
if [ $CHECKIT == 2 ]; then
|
if [ $CHECKIT == 2 ]; then
|
||||||
declare RESULT=($SURILOG)
|
declare RESULT=($SURILOG)
|
||||||
|
|||||||
Reference in New Issue
Block a user