mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
always update annotation / defaults for managed integrations
This commit is contained in:
@@ -25,9 +25,7 @@
|
|||||||
{% set index_settings = es.get('index_settings', {}) %}
|
{% set index_settings = es.get('index_settings', {}) %}
|
||||||
{% set input = index_settings.get('so-logs', {}) %}
|
{% set input = index_settings.get('so-logs', {}) %}
|
||||||
{% for k in matched_integration_names %}
|
{% for k in matched_integration_names %}
|
||||||
{% if k not in index_settings %}
|
|
||||||
{% set _ = index_settings.update({k: input}) %}
|
{% set _ = index_settings.update({k: input}) %}
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% for k in addon_integration_keys %}
|
{% for k in addon_integration_keys %}
|
||||||
{% if k not in matched_integration_names and k in index_settings %}
|
{% if k not in matched_integration_names and k in index_settings %}
|
||||||
@@ -45,10 +43,8 @@
|
|||||||
{% set es = data.get('elasticsearch', {}) %}
|
{% set es = data.get('elasticsearch', {}) %}
|
||||||
{% set index_settings = es.get('index_settings', {}) %}
|
{% set index_settings = es.get('index_settings', {}) %}
|
||||||
{% for k in matched_integration_names %}
|
{% for k in matched_integration_names %}
|
||||||
{% if k not in index_settings %}
|
|
||||||
{% set input = ADDON_INTEGRATION_DEFAULTS[k] %}
|
{% set input = ADDON_INTEGRATION_DEFAULTS[k] %}
|
||||||
{% set _ = index_settings.update({k: input})%}
|
{% set _ = index_settings.update({k: input})%}
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% for k in addon_integration_keys %}
|
{% for k in addon_integration_keys %}
|
||||||
{% if k not in matched_integration_names and k in index_settings %}
|
{% if k not in matched_integration_names and k in index_settings %}
|
||||||
|
|||||||
Reference in New Issue
Block a user