Hi All,
We're using JDBC input plugin to load data from Oracle 19c DB. Totally 55 separate config files ( each per client ) . Each file having 4 different sections for JDBC input, scheduled to run every 10 secs.
Some times scheduled run is not happening, after 2 mins or so, for a single client or 2. Not all the 4 sections of the jdbc input is skipped, may be one or two. Its happening for random clients. No errors in the logs. Not sure how to triage this. Request your help in identifying the issue.
Code Snippet.
input{
jdbc{
jdbc_driver_library => "/etc/logstash/jdbc/drivers/ojdbc7.jar"
jdbc_driver_class => "Java::oracle.jdbc.driver.OracleDriver"
jdbc_validate_connection => true
jdbc_connection_string => "jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=OFF)(FAILOVER=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXX)(PORT=1111))(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXX)(PORT=1111))(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXX)(PORT=1111))(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXX)(PORT=1111)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ELK)))"
jdbc_user=>"USER"
jdbc_password => "${PASS}"
jdbc_fetch_size => 300
jdbc_default_timezone => "EST"
schedule => "*/10 * * * * *"
statement_filepath => "/etc/logstash/conf.d/SQL/XXX/XXX_MESSAGES_STATEMENT.SQL"
tracking_column => "hm_id"
use_column_value => true
tracking_column_type => "numeric"
last_run_metadata_path => "/etc/logstash/conf.d/SQL/XXX/sql_last_value/XXX_MESSAGES.yml"
type => "123"
}
jdbc{
jdbc_driver_library => "/etc/logstash/jdbc/drivers/ojdbc7.jar"
jdbc_driver_class => "Java::oracle.jdbc.driver.OracleDriver"
jdbc_validate_connection => true
jdbc_connection_string => "jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=OFF)(FAILOVER=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXX)(PORT=1111))(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXX)(PORT=1111))(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXX)(PORT=1111))(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXX)(PORT=1111)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ELK)))"
jdbc_user=>"USER"
jdbc_password => "${PASS}"
jdbc_fetch_size => 300
jdbc_default_timezone => "EST"
schedule => "*/10 * * * * *"
statement_filepath => "/etc/logstash/conf.d/SQL/XXX/XXX_STATEMENT.SQL"
tracking_column => "sit_id"
use_column_value => true
tracking_column_type => "numeric"
last_run_metadata_path => "/etc/logstash/conf.d/SQL/XXX/sql_last_value/XXX_INOUT.yml"
type => "123"
}
jdbc{
jdbc_driver_library => "/etc/logstash/jdbc/drivers/ojdbc7.jar"
jdbc_driver_class => "Java::oracle.jdbc.driver.OracleDriver"
jdbc_validate_connection => true
jdbc_connection_string => "jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=OFF)(FAILOVER=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXX)(PORT=1111))(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXX)(PORT=1111))(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXX)(PORT=1111))(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXX)(PORT=1111)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ELK)))"
jdbc_user=>"USER"
jdbc_password => "${PASS}"
jdbc_fetch_size => 300
jdbc_default_timezone => "EST"
schedule => "*/10 * * * * *"
statement_filepath => "/etc/logstash/conf.d/SQL/XXX/XXX_STATEMENT.SQL"
tracking_column => "srq_id"
use_column_value => true
tracking_column_type => "numeric"
last_run_metadata_path => "/etc/logstash/conf.d/SQL/XXX/sql_last_value/XXX_.yml"
type => "123"
}
jdbc{
jdbc_driver_library => "/etc/logstash/jdbc/drivers/ojdbc7.jar"
jdbc_driver_class => "Java::oracle.jdbc.driver.OracleDriver"
jdbc_validate_connection => true
jdbc_connection_string => "jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=OFF)(FAILOVER=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXX)(PORT=1111))(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXX)(PORT=1111))(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXX)(PORT=1111))(ADDRESS=(PROTOCOL=TCP)(HOST=XXXXXX)(PORT=1111)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=ELK)))"
jdbc_user=>"USER"
jdbc_password => "${PASS}"
jdbc_fetch_size => 300
jdbc_default_timezone => "EST"
schedule => "*/10 * * * * *"
statement_filepath => "/etc/logstash/conf.d/SQL/XXX/XXX_REQUEST_STATEMENT.SQL"
tracking_column => "db_id"
use_column_value => true
tracking_column_type => "numeric"
last_run_metadata_path => "/etc/logstash/conf.d/SQL/XXX/sql_last_value/XXX_REQUEST.yml"
type => "123"
}
}