Zabbix + Logstash = Field referenced by ... is missing

I'm trying to configure sending messages from the log to Zabbix, I ran into this problem.
When running Logstash, there are a bunch of errors of this type in the log

[logstash.outputs.zabbix][main][2ef3e6f6411863c21dc15fa2829a3570282e712157b0a8bc9736c98336a781a0] Field referenced by [@metadata][zabbix_host] is missing

Configuration file:
input {
file {
path => "/var/log/kibana/kibana1.log"
start_position => "beginning"
add_field => [ "[@metadata][zabbix_key]" , "test" ]
add_field => [ "[@metadata][zabbix_host]" , "void" ]
}
}

output {
stdout { codec => rubydebug }
zabbix{
zabbix_host => "[@metadata][zabbix_host]"
zabbix_key => "[@metadata][zabbix_key]"
zabbix_value => "test"
zabbix_server_host => "192.168.1.100"
zabbix_server_port => "10051"
}
}

What could be the reason?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.