{
  "description" : "zeek.read_write_multiple_registers",
  "processors" : [
    { "set": { "field": "event.dataset", "value": "modbus_read_write_multiple_registers" } },
    { "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.write_start_address",	"target_field": "modbus.write.start.address",		"ignore_missing": true 	} },
     { "rename":         { "field": "message2.write_registers",  "target_field": "modbus.write.registers",         "ignore_missing": true  } },
     { "rename":         { "field": "message2.read_start_address",  "target_field": "modbus.read.start.address",         "ignore_missing": true  } },
    { "rename": 	{ "field": "message2.read.quality", 	  "target_field": "modbus.read.quality",		"ignore_missing": true 	} },
    { "rename": 	{ "field": "message2.read_registers", 	"target_field": "modbus.read.registers",		"ignore_missing": true 	} },
    { "pipeline":       { "name": "zeek.common"                                                                                   } }
  ]
}
