# Logstash Exception: Connection reset by peer

**URL:** <https://discuss.elastic.co/t/logstash-exception-connection-reset-by-peer/118844>\
**Category:** Logstash\
**Created:** [February 7, 2018, 12:43pm UTC](https://discuss.elastic.co/t/logstash-exception-connection-reset-by-peer/118844 "2018-02-07T12:43:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Farhad\_Yousefi](https://avatars.discourse-cdn.com/v4/letter/f/b487fb/32.png) [@Farhad\_Yousefi](https://discuss.elastic.co/u/Farhad_Yousefi)\
**Post date:** [February 7, 2018, 12:43pm UTC](https://discuss.elastic.co/t/logstash-exception-connection-reset-by-peer/118844/1 "2018-02-07T12:43:40Z")

</div>

I want to monitor our exception table via logstash. but I have got this error.

```
[2018-02-07T15:43:11,344][ERROR][org.logstash.beats.BeatsHandler] Exception: Connection reset by peer
[2018-02-07T15:44:00,478][INFO][logstash.inputs.jdbc] (0.161000s) SELECT * FROM EXCEPTION

```

here is my logstash configure:

```
 jdbc {
    jdbc_driver_library => "etc/logstash/lib/db2jcc4.jar"
    jdbc_driver_class => "com.ibm.db2.jcc.DB2Driver"
    jdbc_connection_string => "jdbc:db2://ip:port/db"
    jdbc_user => "usr"
    jdbc_password => "pass"
    schedule => "* * * * *"
    statement => "SELECT * FROM EXCEPTION" 
    type => "EXCEPTION"      
 }

```

I really appreciate it if anyone can help me. thank you

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 8, 2018, 8:18pm UTC](https://discuss.elastic.co/t/logstash-exception-connection-reset-by-peer/118844/2 "2018-02-08T20:18:06Z")

</div>

The error is related to your beats input. It looks like the client disconnected.

---

<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 8, 2018, 8:18pm UTC](https://discuss.elastic.co/t/logstash-exception-connection-reset-by-peer/118844/3 "2018-03-08T20:18:13Z")

</div>

Closed on March 8, 2018, 8:18pm UTC

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