Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Logstash unable to query Database..Please help
Post Body

I'm using jbdc filter in logstash to pull the records and I'm getting the below error in the logstash logs.

[2019-11-20T12:22:01,666][WARN ][logstash.inputs.jdbc ] Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::JavaSql::SQLException: Stream has already been closed>}

Below is my input config

jdbc {

jdbc_connection_string => "jdbc:oracle:thin:@//XXXX:1531/XXXX" jdbc_user => "XXXXXX" jdbc_password => "XXXXX" jdbc_validate_connection => true jdbc_driver_library => "/etc/logstash/conf.d/ojdbc7-12.1.0.2.jar" jdbc_driver_class =>"Java::oracle.jdbc.driver.OracleDriver" schedule => "* * * * *" statement => "select * from table WHERE INITIATION_TIME > :sql_last_value ORDER by INITIATION_TIME" use_column_value => true tracking_column => "initiation_time" tracking_column_type => "timestamp" last_run_metadata_path => "/etc/logstash conf.d/.logstash_jdbc_last_run"

}

The same input config for Dev DB connection is working. But when I change the DB details to Testing environment, I'm getting the above error.

P.S: A single error is printed. There is no log stacktrace.

Author
Account Strength
80%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
26
Link Karma
2
Comment Karma
24
Profile updated: 5 days ago
Posts updated: 10 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 years ago