# Send metric when filter not match

**URL:** <https://discuss.elastic.co/t/send-metric-when-filter-not-match/96487>\
**Category:** Logstash\
**Created:** [August 9, 2017, 5:26pm UTC](https://discuss.elastic.co/t/send-metric-when-filter-not-match/96487 "2017-08-09T17:26:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bitesize](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@bitesize](https://discuss.elastic.co/u/bitesize)\
**Post date:** [August 9, 2017, 5:26pm UTC](https://discuss.elastic.co/t/send-metric-when-filter-not-match/96487/1 "2017-08-09T17:26:55Z")

</div>

I have a field called "eventid" that if it matches a certain value, for example, "2" then I tag it with "alert" and add [@metadata][...] to send to a Zabbix trapper.

The problem is when there is no input with that specific eventid then no data is sent to Zabbix.

Is it possible to send a value of "0" in a interval if there is no eventid=2 in Logstash filter. Mind that I will have to monitor other eventids in the future.

---

<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:** [September 6, 2017, 5:27pm UTC](https://discuss.elastic.co/t/send-metric-when-filter-not-match/96487/2 "2017-09-06T17:27:02Z")

</div>

Closed on September 6, 2017, 5:27pm UTC

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