# Problem pushing log from logstash to zabbix

**URL:** <https://discuss.elastic.co/t/problem-pushing-log-from-logstash-to-zabbix/55894>\
**Category:** Logstash\
**Created:** [July 19, 2016, 3:26pm UTC](https://discuss.elastic.co/t/problem-pushing-log-from-logstash-to-zabbix/55894 "2016-07-19T15:26:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jpuch](https://avatars.discourse-cdn.com/v4/letter/j/ccd318/32.png) [@Jpuch](https://discuss.elastic.co/u/Jpuch)\
**Post date:** [July 19, 2016, 3:26pm UTC](https://discuss.elastic.co/t/problem-pushing-log-from-logstash-to-zabbix/55894/1 "2016-07-19T15:26:53Z")

</div>

Hello there,

I'm trying send log from logstash to zabbix but i face a problem i can't solve.

so these are my conf files :

Input :

```
input {
  udp {
    port => 514
    type => "syslog"
  }
}

```

output :

```
output {
        zabbix {
                zabbix_server_host => "localhost"
                zabbix_host => "host"
                zabbix_key => "[@metadata][zabbix_key]"
                zabbix_value => "host"
        }
        elasticsearch {
                hosts => ["localhost:9200"]
        }
}

```

**EDIT : zabbix\_value =\> "message"** but the problem is still the same

filter : ATM (for testing) i just want to push everything from logstash to zabbix so i added this line at the bottom of the file

```
        mutate {
                add_field => {"[@metadata][zabbix_key]" => "logstash_syslog" }
        }

```

On zabbix i set up a zabbix trapepr with the same key and when i restart every services i have those log :

> {:timestamp=\>"2016-07-19T17:11:00.552000+0200", :message=\>"Zabbix server at 127.0.0.1 responded atypically.", :returned\_data=\>"ZBX\_NOTSUPPORTED\x00Invalid item key format.", :level=\>:error}

> {:timestamp=\>"2016-07-19T17:11:00.552000+0200", :message=\>"Failed to send event to Zabbix", :zabbix\_response=\>"ZBX\_NOTSUPPORTED\x00Invalid item key format.",

Do you have any idea how to fix this ?

Thanks for reading,

Josselin

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [July 22, 2016, 2:41pm UTC](https://discuss.elastic.co/t/problem-pushing-log-from-logstash-to-zabbix/55894/2 "2016-07-22T14:41:30Z")

</div>

Without some debug logs from Logstash, I won't be able to help as quickly. It seems that something isn't being captured correctly.

What version of Zabbix? What version of Logstash? What version of the Logstash zabbix output plugin?

---

<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:** [July 6, 2017, 4:46am UTC](https://discuss.elastic.co/t/problem-pushing-log-from-logstash-to-zabbix/55894/3 "2017-07-06T04:46:51Z")

</div>


