From 6e3aa94a4ed045aa8cbccaaff8a30cd26e16df88 Mon Sep 17 00:00:00 2001 From: wbnod <56418809+wbnod@users.noreply.github.com> Date: Wed, 27 Oct 2021 15:05:58 -0400 Subject: [PATCH 1/2] Update es_index_export.py try/except block around DN keys append --- scripts/es_index_export.py | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/scripts/es_index_export.py b/scripts/es_index_export.py index 83763844..8f26c051 100755 --- a/scripts/es_index_export.py +++ b/scripts/es_index_export.py @@ -244,19 +244,22 @@ def __init__(self): dr_confidence = 'not defined' - for dn in alert_dns: - if dn['title'] not in dn_titles: - dn_titles.append(dn['title']) - if dn['category'] not in dn_categories: - dn_categories.append(dn['category']) - if dn['platform'] not in dn_platforms: - dn_platforms.append(dn['platform']) - if dn['type'] not in dn_types: - dn_types.append(dn['type']) - if dn['channel'] not in dn_channels: - dn_channels.append(dn['channel']) - if dn['provider'] not in dn_providers: - dn_providers.append(dn['provider']) + try: + for dn in alert_dns: + if dn['title'] not in dn_titles: + dn_titles.append(dn['title']) + if dn['category'] not in dn_categories: + dn_categories.append(dn['category']) + if dn['platform'] not in dn_platforms: + dn_platforms.append(dn['platform']) + if dn['type'] not in dn_types: + dn_types.append(dn['type']) + if dn['channel'] not in dn_channels: + dn_channels.append(dn['channel']) + if dn['provider'] not in dn_providers: + dn_providers.append(dn['provider']) + except: + pass for lp in logging_policies: if lp['title'] not in lp_titles: From 1cb146a6354beeff3ba45ff6106183482f857c01 Mon Sep 17 00:00:00 2001 From: wbnod <56418809+wbnod@users.noreply.github.com> Date: Thu, 27 Jan 2022 12:22:18 -0500 Subject: [PATCH 2/2] Set theme jekyll-theme-slate --- _config.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 _config.yml diff --git a/_config.yml b/_config.yml new file mode 100644 index 00000000..c7418817 --- /dev/null +++ b/_config.yml @@ -0,0 +1 @@ +theme: jekyll-theme-slate \ No newline at end of file