We have syslog input events with severity 6 which we want to map to priority 1:
translate {
field => "severity"
destination => "priority"
dictionary => {
"0" => 5
"1" => 4
"2" => 3
"3" => 3
"4" => 2
"5" => 1
"6" => 1
"7" => 0
}
}
translate {
field => "severity"
destination => "type"
dictionary => {
"0" => "ERROR"
"1" => "ERROR"
"2" => "ERROR"
"3" => "ERROR"
"4" => "WARNING"
"5" => "INFO"
"6" => "INFO"
"7" => "DEBUG"
}
}
The resulting priority (14) is incorrect and we can't understand where it's coming from:
{
"severity" => 6,
"type" => "INFO",
"priority" => 14,
"facility" => 1,
"severity_label" => "Informational",
"timestamp" => 2018-03-29T09:15:50.000Z
}
Logstash 6.2.2 Windows