{
  "description" : "zeek.modbus_mask_write_register",
  "processors" : [
    { "set": { "field": "event.dataset", "value": "modbus_mask_write_register" } },
    { "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.and_mask",	         "target_field": "modbus.and_mask",		"ignore_missing": true 	} },
    { "rename": 	{ "field": "message2.or_mask", 	         "target_field": "modbus.or_mask",		"ignore_missing": true 	} },
    { "pipeline":       { "name": "zeek.common"                                                                                   } }
  ]
}
