# Logstash zabbix output plugin error said error=\>#\<Zabbix Protocol::Error: data length is too short (data: " ")

**URL:** <https://discuss.elastic.co/t/logstash-zabbix-output-plugin-error-said-error-zabbix-protocol-data-length-is-too-short-data/169124>\
**Category:** Logstash\
**Created:** [February 20, 2019, 2:59am UTC](https://discuss.elastic.co/t/logstash-zabbix-output-plugin-error-said-error-zabbix-protocol-data-length-is-too-short-data/169124 "2019-02-20T02:59:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xemina](https://avatars.discourse-cdn.com/v4/letter/x/2bfe46/32.png) [@xemina](https://discuss.elastic.co/u/xemina)\
**Post date:** [February 20, 2019, 2:59am UTC](https://discuss.elastic.co/t/logstash-zabbix-output-plugin-error-said-error-zabbix-protocol-data-length-is-too-short-data/169124/1 "2019-02-20T02:59:44Z")

</div>

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"  
}

}

}

---

<div class="post-metadata">

**Author:** ![xemina](https://avatars.discourse-cdn.com/v4/letter/x/2bfe46/32.png) [@xemina](https://discuss.elastic.co/u/xemina)\
**Post date:** [February 20, 2019, 3:26am UTC](https://discuss.elastic.co/t/logstash-zabbix-output-plugin-error-said-error-zabbix-protocol-data-length-is-too-short-data/169124/2 "2019-02-20T03:26:04Z")

</div>

logstash-zabbix 3.0.5  
logstash 6.5.3

---

<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:** [March 20, 2019, 3:26am UTC](https://discuss.elastic.co/t/logstash-zabbix-output-plugin-error-said-error-zabbix-protocol-data-length-is-too-short-data/169124/3 "2019-03-20T03:26:07Z")

</div>

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