зеркало из https://github.com/mozilla/MozDef.git
Merge pull request #1004 from mozilla/key_update_for_pulseguardian
updating key fields for pulseguardian events to move source_ip to sou…
This commit is contained in:
Коммит
9abad28a43
|
@ -255,6 +255,8 @@ class taskConsumer(object):
|
||||||
event['summary'] = event['details']['message']
|
event['summary'] = event['details']['message']
|
||||||
if 'severity' in event['details']:
|
if 'severity' in event['details']:
|
||||||
event['severity'] = event['details']['severity']
|
event['severity'] = event['details']['severity']
|
||||||
|
if 'source_ip' in event['details']:
|
||||||
|
event['sourceipaddress'] = event['details']['source_ip']
|
||||||
else:
|
else:
|
||||||
event['severity'] = 'INFO'
|
event['severity'] = 'INFO'
|
||||||
event['category'] = 'syslog'
|
event['category'] = 'syslog'
|
||||||
|
|
Загрузка…
Ссылка в новой задаче