mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Merge pull request #304 from Security-Onion-Solutions/quickfix/grafana
fix grafana for zeek
This commit is contained in:
@@ -1395,7 +1395,7 @@
|
|||||||
"condition": "AND",
|
"condition": "AND",
|
||||||
"key": "container_name",
|
"key": "container_name",
|
||||||
"operator": "=",
|
"operator": "=",
|
||||||
"value": "so-bro"
|
"value": "so-zeek"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -1913,7 +1913,7 @@
|
|||||||
"condition": "AND",
|
"condition": "AND",
|
||||||
"key": "container_name",
|
"key": "container_name",
|
||||||
"operator": "=",
|
"operator": "=",
|
||||||
"value": "so-bro"
|
"value": "so-zeek"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1396,7 +1396,7 @@
|
|||||||
"condition": "AND",
|
"condition": "AND",
|
||||||
"key": "container_name",
|
"key": "container_name",
|
||||||
"operator": "=",
|
"operator": "=",
|
||||||
"value": "so-bro"
|
"value": "so-zeek"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -1901,7 +1901,7 @@
|
|||||||
"condition": "AND",
|
"condition": "AND",
|
||||||
"key": "container_name",
|
"key": "container_name",
|
||||||
"operator": "=",
|
"operator": "=",
|
||||||
"value": "so-bro"
|
"value": "so-zeek"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
BROLOG=$(tac /host/nsm/bro/logs/packetloss.log | head -2)
|
ZEEKLOG=$(tac /host/nsm/zeek/logs/packetloss.log | head -2)
|
||||||
declare RESULT=($BROLOG)
|
declare RESULT=($ZEEKLOG)
|
||||||
CURRENTDROP=${RESULT[3]}
|
CURRENTDROP=${RESULT[3]}
|
||||||
PASTDROP=${RESULT[9]}
|
PASTDROP=${RESULT[9]}
|
||||||
DROPPED=$(($CURRENTDROP - $PASTDROP))
|
DROPPED=$(($CURRENTDROP - $PASTDROP))
|
||||||
|
|||||||
Reference in New Issue
Block a user