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

**URL:** <https://discuss.elastic.co/t/zabbix-logstash-field-referenced-by-is-missing/309100>\
**Category:** Logstash\
**Created:** [July 7, 2022, 10:50am UTC](https://discuss.elastic.co/t/zabbix-logstash-field-referenced-by-is-missing/309100 "2022-07-07T10:50:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![voidx](https://avatars.discourse-cdn.com/v4/letter/v/e95f7d/32.png) [@voidx](https://discuss.elastic.co/u/voidx)\
**Post date:** [July 7, 2022, 10:50am UTC](https://discuss.elastic.co/t/zabbix-logstash-field-referenced-by-is-missing/309100/1 "2022-07-07T10:50:29Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 4, 2022, 10:50am UTC](https://discuss.elastic.co/t/zabbix-logstash-field-referenced-by-is-missing/309100/2 "2022-08-04T10:50:46Z")

</div>

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