You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Script for exporting Elastic index, atomic-threat-coverage/scripts/es-index-export.py breaks when executing Makefile because some data/atc/data_needed/DN_### files are missing required keys, e.g. 'provider:'.
error line 258 in __init__:
if dn['provider'] not in dn_providers:
KeyError: 'provider'
Best case solution is if upstream DN_files are correctly formed with all needed keys present. Since we cannot guarantee that, es-export-index.py needs to provide some level of resilience rather than failing altogether.
Workaround is to wrap block in try/except for error handling:
try:
for dn in alert_dns:
...
except:
pass
The text was updated successfully, but these errors were encountered:
Script for exporting Elastic index, atomic-threat-coverage/scripts/es-index-export.py breaks when executing Makefile because some data/atc/data_needed/DN_### files are missing required keys, e.g. 'provider:'.
Best case solution is if upstream DN_files are correctly formed with all needed keys present. Since we cannot guarantee that, es-export-index.py needs to provide some level of resilience rather than failing altogether.
Workaround is to wrap block in try/except for error handling:
The text was updated successfully, but these errors were encountered: