Hi , I got this error if I write output with zabbix plugin
filter {
if "oeelog_wmq" in [tags] {
grok {
match => {
"message" => "%{TIMESTAMP_ISO8601:wmqtime}"
}
}
date {
match => ["wmqtime", "yyyy-MM-dd HH:mm:ss.SSS"]
target => "@timestamp"
}
}
else {
grok {
match => {
"message" => "%{MONTHNUM}[/-]%{MONTHDAY} %{TIME:time} %{WORD:transID} %{WORD:info} %{GREEDYDATA}%{NUMBER:pid}"
}
}
mutate{
add_field => ["[@metadata][zabbix_key]","logstash-mes"]
add_field => ["[@metadata][zabbix_host]","ELK05"]
}
if [transID]{
ruby{
code => "event.set('[error_code]', event.get('[transID]')[2..2])"
}
}
}
}
output {
if [transID] {
zabbix{
zabbix_host => "[@metadata][zabbix_host]"
zabbix_key => "[@metadata][zabbix_key]"
zabbix_server_host => "10.9.255.220"
zabbix_server_port =>"10050"
zabbix_value => "message"
}
}
}