Lowercase msg before matching

This commit is contained in:
2023-01-12 07:20:48 +00:00
parent 031995d4b9
commit 9aacc2cc51

View File

@@ -81,7 +81,7 @@ def process_rules(data):
if field == "msg":
for msg in value:
if "msg" in message:
if msg in message["msg"]:
if msg.lower() in message["msg"].lower():
matched_field_number += 1
matched_fields.append(field)
# Break out of the msg matching loop