Fix syntax error for 'ics' tag logic

This commit is contained in:
weslambert
2022-11-22 07:23:56 -05:00
committed by GitHub
parent 3afa8bd9da
commit 4c09c8856b

View File

@@ -144,7 +144,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*|^cip*|^cotp*|^dnp3*|^ecat*|^enip*|^modbus*|^opcua*|^profinet*|^s7comm*') %}
- add_tags: - add_tags:
tags: ["ics"] tags: ["ics"]
{%- endif %} {%- endif %}
@@ -165,7 +165,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*|^cip*|^cotp*|^dnp3*|^ecat*|^enip*|^modbus*|^opcua*|^profinet*|^s7comm*') %}
- add_tags: - add_tags:
tags: ["ics"] tags: ["ics"]
{%- endif %} {%- endif %}