Compare commits
2 Commits
4f55ffeaf7
...
9aacc2cc51
Author | SHA1 | Date | |
---|---|---|---|
9aacc2cc51 | |||
031995d4b9 |
@ -76,6 +76,18 @@ def process_rules(data):
|
|||||||
break
|
break
|
||||||
# Continue to next field
|
# Continue to next field
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
# Allow partial matches for msg
|
||||||
|
if field == "msg":
|
||||||
|
for msg in value:
|
||||||
|
if "msg" in message:
|
||||||
|
if msg.lower() in message["msg"].lower():
|
||||||
|
matched_field_number += 1
|
||||||
|
matched_fields.append(field)
|
||||||
|
# Break out of the msg matching loop
|
||||||
|
break
|
||||||
|
# Continue to next field
|
||||||
|
continue
|
||||||
if field in message and message[field] in value:
|
if field in message and message[field] in value:
|
||||||
matched_field_number += 1
|
matched_field_number += 1
|
||||||
matched_fields.append(field)
|
matched_fields.append(field)
|
||||||
|
Loading…
Reference in New Issue
Block a user