i format my code using </> icon and send to again.
input {
jdbc {
jdbc_driver_library => "D:\mysql-connector-java-5.1.44\mysql-connector-java-5.1.44\mysql-connector-java-5.1.44-bin.jar"
jdbc_driver_class => "com.mysql.jdbc.Driver"
jdbc_connection_string => "jdbc:mysql://localhost:3306/sample"
jdbc_user => "root"
jdbc_password => "root"
jdbc_fetch_size => 10000
schedule => "* * * * *"
statement => "SELECT * from sample"
#codec => "json"
}
}
filter {
fingerprint {
source => "RRH_MR_NUM"
target => "[@metadata][fingerprint]"
method => "MURMUR3"
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "clinical"
# document_id => "%{[@metadata][fingerprint]}"
}
stdout { codec => rubydebug }
}
i tried this above query to eliminate the duplicate records in elastic search.
is there any mistake in my above code.
please let me know.