SQL connection exception continuing in Logstash

Hi,

I am using jdbc input in Logstash, to fetch log entries from two different postgres tables. The queries are scheduled o run every hour, which fetched new nows only. Today, I am getting no entries in my elasticsearch and when I analyzed Logstash log trace, I found this;

[2017-02-10T04:00:27,861][ERROR][logstash.inputs.jdbc     ] Java::ComEdbUtil::PSQLException: An I/O error occurred while sending to the backend.: SELECT * FROM adminslogs where logtime > (current_timestamp - INTERVAL '1' HOUR)
[2017-02-10T04:00:27,865][WARN ][logstash.inputs.jdbc     ] Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::ComEdbUtil::PSQLException: An I/O error occurred while sending to the backend.>}
[2017-02-10T04:00:38,096][ERROR][logstash.inputs.jdbc     ] Java::ComEdbUtil::PSQLException: An I/O error occurred while sending to the backend.: SELECT * FROM userslogs where logtime > (current_timestamp - INTERVAL '1' HOUR)
[2017-02-10T04:00:38,097][WARN ][logstash.inputs.jdbc     ] Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::ComEdbUtil::PSQLException: An I/O error occurred while sending to the backend.>}
[2017-02-10T04:45:00,276][WARN ][logstash.inputs.jdbc     ] Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::ComEdbUtil::PSQLException: This connection has been closed.>}
[2017-02-10T04:45:00,276][WARN ][logstash.inputs.jdbc     ] Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::ComEdbUtil::PSQLException: This connection has been closed.>}
[2017-02-10T05:45:00,101][WARN ][logstash.inputs.jdbc     ] Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::ComEdbUtil::PSQLException: This connection has been closed.>}
[2017-02-10T05:45:00,101][WARN ][logstash.inputs.jdbc     ] Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::ComEdbUtil::PSQLException: This connection has been closed.>}
[2017-02-10T06:45:00,190][WARN ][logstash.inputs.jdbc     ] Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::ComEdbUtil::PSQLException: This connection has been closed.>}
[2017-02-10T06:45:00,190][WARN ][logstash.inputs.jdbc     ] Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::ComEdbUtil::PSQLException: This connection has been closed.>}
[2017-02-10T07:45:00,016][WARN ][logstash.inputs.jdbc     ] Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::ComEdbUtil::PSQLException: This connection has been closed.>}
[2017-02-10T07:45:00,016][WARN ][logstash.inputs.jdbc     ] Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::ComEdbUtil::PSQLException: This connection has been closed.>}
[2017-02-10T08:45:00,180][WARN ][logstash.inputs.jdbc     ] Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::ComEdbUtil::PSQLException: This connection has been closed.>}
[2017-02-10T08:45:00,180][WARN ][logstash.inputs.jdbc     ] Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::ComEdbUtil::PSQLException: This connection has been closed.>}
[2017-02-10T09:45:00,038][WARN ][logstash.inputs.jdbc     ] Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::ComEdbUtil::PSQLException: This connection has been closed.>}
[2017-02-10T09:45:00,038][WARN ][logstash.inputs.jdbc     ] Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::ComEdbUtil::PSQLException: This connection has been closed.>}

Why is this happening and it will be really helpful if somebody tell me how to fix this. It seems like a connection error, and is this a Logstash error?

Thanks in advance..

2 Likes

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