Hi,
I'm getting duplicate records when i run query for every one minute.
Here is my conf file.
input {
jdbc {
jdbc_connection_string => "jdbc:oracle:thin:@dbhost:port:SID"
# The user we wish to execute our statement as
jdbc_user => "username"
jdbc_password => "password"
jdbc_validate_connection => true
schedule => "* * * * *"
# The path to our downloaded jdbc driver
jdbc_driver_library => "/opt/Oracle/jdbc/ojdbc6.jar"
# The name of the driver class for Postgresql
jdbc_driver_class => "Java::oracle.jdbc.driver.OracleDriver"
# our query
statement => "select SHORT_CODE,SHORT_CODE_LONG_VAL,VALUE_TYPE,VALUE,CREATED_DTTM,IMEI from short_code"
}
}
filter {
date {
locale => "en"
match => [ "time_stamp", "dd-MMM-yy HH:mm:ss.SSSSSSSSS a" ]
timezone => "America/Los_Angeles"
#target => "logdate"
remove_field => "time_stamp"
}
}
output {
elasticsearch {
hosts => ["host name"]
index => "short_code_index"
document_type => "short_code"
document_id => "%{SHORT_CODE}"
}
stdout { codec => rubydebug }
}
Appriciate your help!