Add 'ics' tag for 'bsap'-prefixed events/logs

This commit is contained in:
Wes
2022-12-06 16:01:57 +00:00
parent 14af1d36cb
commit 499b5d95f2

View File

@@ -145,7 +145,7 @@ filebeat.inputs:
dataset: {{ LOGNAME }} dataset: {{ LOGNAME }}
category: network category: network
processors: processors:
{%- if LOGNAME is match('^bacnet*|^cip*|^cotp*|^dnp3*|^ecat*|^enip*|^modbus*|^opcua*|^profinet*|^s7comm*') %} {%- if LOGNAME is match('^bacnet*|^bsap*|^cip*|^cotp*|^dnp3*|^ecat*|^enip*|^modbus*|^opcua*|^profinet*|^s7comm*') %}
- add_tags: - add_tags:
tags: ["ics"] tags: ["ics"]
{%- endif %} {%- endif %}
@@ -166,7 +166,7 @@ filebeat.inputs:
category: network category: network
imported: true imported: true
processors: processors:
{%- if LOGNAME is match('^bacnet*|^cip*|^cotp*|^dnp3*|^ecat*|^enip*|^modbus*|^opcua*|^profinet*|^s7comm*') %} {%- if LOGNAME is match('^bacnet*|^bsap*|^cip*|^cotp*|^dnp3*|^ecat*|^enip*|^modbus*|^opcua*|^profinet*|^s7comm*') %}
- add_tags: - add_tags:
tags: ["ics"] tags: ["ics"]
{%- endif %} {%- endif %}