# Capture Errors On Input

**URL:** <https://discuss.elastic.co/t/capture-errors-on-input/246193>\
**Category:** Logstash\
**Created:** [August 24, 2020, 9:47pm UTC](https://discuss.elastic.co/t/capture-errors-on-input/246193 "2020-08-24T21:47:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![csgeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/csgeek/32/72144_2.png) [@csgeek](https://discuss.elastic.co/u/csgeek)\
**Post date:** [August 24, 2020, 9:47pm UTC](https://discuss.elastic.co/t/capture-errors-on-input/246193/1 "2020-08-24T21:47:10Z")

</div>

I'd like to add a pattern where errors that occur on the input are captured. I am using the [snmp input](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-snmp.html) plugin.

If the host is unreachable or anything else happens, I'd like to log the error/exception and send it to a different queue for analysis later on.

I didn't see anything in the input plugin or the common options that would help.

The closest thing I can see is enable\_metrics which might give an error rate.

Any suggestions would be appreciated.

---

<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:** [August 25, 2020, 2:31pm UTC](https://discuss.elastic.co/t/capture-errors-on-input/246193/2 "2020-08-25T14:31:17Z")

</div>

I do not think logstash provides a way to do that.

---

<div class="post-metadata">

**Author:** ![csgeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/csgeek/32/72144_2.png) [@csgeek](https://discuss.elastic.co/u/csgeek)\
**Post date:** [August 28, 2020, 1:16am UTC](https://discuss.elastic.co/t/capture-errors-on-input/246193/3 "2020-08-28T01:16:41Z")

</div>

That's unfortunate, but thanks for your response.

---

<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 25, 2020, 1:16am UTC](https://discuss.elastic.co/t/capture-errors-on-input/246193/4 "2020-09-25T01:16:55Z")

</div>

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