From 072bfd87b7b78f9696cec29480e755e7899e63ee Mon Sep 17 00:00:00 2001 From: Peter Di Giorgio <16980376+lock-wire@users.noreply.github.com> Date: Fri, 21 Oct 2022 12:53:30 -0700 Subject: [PATCH] Create Ingest for Modbus Detailed --- salt/elasticsearch/files/ingest/modbus_detailed | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 salt/elasticsearch/files/ingest/modbus_detailed diff --git a/salt/elasticsearch/files/ingest/modbus_detailed b/salt/elasticsearch/files/ingest/modbus_detailed new file mode 100644 index 000000000..723027679 --- /dev/null +++ b/salt/elasticsearch/files/ingest/modbus_detailed @@ -0,0 +1,14 @@ +{ + "description" : "zeek.modbus_detailed", + "processors" : [ + { "remove": { "field": ["host"], "ignore_failure": true } }, + { "json": { "field": "message", "target_field": "message2", "ignore_failure": true } }, + { "rename": { "field": "message2.unit_id", "target_field": "modbus.unit.id", "ignore_missing": true } }, + { "rename": { "field": "message2.func", "target_field": "modbus.function", "ignore_missing": true } }, + { "rename": { "field": "message2.network_direction", "target_field": "modbus.network.direction", "ignore_missing": true } }, + { "rename": { "field": "message2.address", "target_field": "modbus.address", "ignore_missing": true } }, + { "rename": { "field": "message2.quality", "target_field": "modbus.quality", "ignore_missing": true } }, + { "rename": { "field": "message2.values", "target_field": "modbus.values", "ignore_missing": true } }, + { "pipeline": { "name": "zeek.common" } } + ] +}