mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
firewall: avoid greedy match for #4067
This commit is contained in:
parent
2a216f91c7
commit
3db7e720cd
@ -114,7 +114,7 @@ if __name__ == '__main__':
|
||||
rule = dict()
|
||||
metadata = dict()
|
||||
# rule metadata (unique hash, hostname, timestamp)
|
||||
log_ident = re.split('filterlog.*\:', record['line'])
|
||||
log_ident = re.split('filterlog[^:]*:', record['line'])
|
||||
tmp = log_ident[0].split()
|
||||
metadata['__digest__'] = md5(record['line'].encode()).hexdigest()
|
||||
metadata['__host__'] = tmp.pop()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user