diff --git a/salt/filebeat/etc/filebeat.yml b/salt/filebeat/etc/filebeat.yml index f38ffd0d7..10f80beea 100644 --- a/salt/filebeat/etc/filebeat.yml +++ b/salt/filebeat/etc/filebeat.yml @@ -145,6 +145,10 @@ filebeat.inputs: dataset: {{ LOGNAME }} category: network processors: + {%- if LOGNAME is match('^bacnet*|^cip*|^cotp*|^dnp3*|^ecat*|^enip*|^modbus*|^opcua*'|^profinet*'|^s7comm*') %} + - add_tags: + tags: ["ics"] + {%- endif %} - drop_fields: fields: ["source", "prospector", "input", "offset", "beat"] @@ -162,6 +166,10 @@ filebeat.inputs: category: network imported: true processors: + {%- if LOGNAME is match('^bacnet*|^cip*|^cotp*|^dnp3*|^ecat*|^enip*|^modbus*|^opcua*'|^profinet*'|^s7comm*') %} + - add_tags: + tags: ["ics"] + {%- endif %} - add_tags: tags: ["import"] - dissect: