# Add tag if SNMP poll reaches its timeout

**URL:** <https://discuss.elastic.co/t/add-tag-if-snmp-poll-reaches-its-timeout/261447>\
**Category:** Logstash\
**Created:** [January 18, 2021, 3:48pm UTC](https://discuss.elastic.co/t/add-tag-if-snmp-poll-reaches-its-timeout/261447 "2021-01-18T15:48:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew22](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@Andrew22](https://discuss.elastic.co/u/Andrew22)\
**Post date:** [January 18, 2021, 3:48pm UTC](https://discuss.elastic.co/t/add-tag-if-snmp-poll-reaches-its-timeout/261447/1 "2021-01-18T15:48:29Z")

</div>

Hello,

I have recently started to use the SNMP plugin to poll a few devices and its great the only issue I am having is if the device reaches its timeout Logstash just logs it in its log file and I would like to have it so it tags it and then continues to go through the filter so I can have a dashboard for devices that are constantly timing out

is this possible? I was thinking if I can add a tag in the input if it fails but I'm not sure how I can accomplish this

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [January 18, 2021, 6:05pm UTC](https://discuss.elastic.co/t/add-tag-if-snmp-poll-reaches-its-timeout/261447/2 "2021-01-18T18:05:01Z")

</div>

I do not think it is possible. If the poll times out then the result set will be empty, and in that case the [code](https://github.com/logstash-plugins/logstash-input-snmp/blob/f7d3c5f93abe2b2e227d95dba1842bcad610d22d/lib/logstash/inputs/snmp.rb#L196) does not create an event.

---

<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:** [February 15, 2021, 6:05pm UTC](https://discuss.elastic.co/t/add-tag-if-snmp-poll-reaches-its-timeout/261447/3 "2021-02-15T18:05:19Z")

</div>

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