mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 17:44:41 +00:00
Filter: livelog, skip illegal log lines
This commit is contained in:
parent
64858b5c58
commit
f56cc1b92f
@ -124,7 +124,10 @@ if __name__ == '__main__':
|
||||
rulep = record['line'].split('filterlog:')[1].strip().split(',')
|
||||
update_rule(rule, metadata, rulep, fields_general)
|
||||
|
||||
if 'version' in rule:
|
||||
if 'action' not in rule:
|
||||
# not a filter log line, skip
|
||||
continue
|
||||
elif 'version' in rule:
|
||||
if rule['version'] == '4':
|
||||
update_rule(rule, metadata, rulep, fields_ipv4)
|
||||
if 'proto' in rule:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user