Hi there
I need to import a table from Oracle using logstash and jdbc input with a compound primary key, Product_id and Language_id.
This is my conf file
input {
jdbc {
jdbc_connection_string => "jdbc:oracle:thin:@//myhost:11521/myservice"
jdbc_user => "user"
jdbc_password => "password"
jdbc_driver_library => "ojdbc6.jar"
jdbc_driver_class => "Java::oracle.jdbc.OracleDriver"
statement_filepath => "query_ecomm.sql"
}
}
output {
elasticsearch {
protocol => http
index => "my_index"
document_type => "ecomm"
document_id => "%{product_id}"
host => "10.0.1.59"
}
}
How can I set the output section in order to add the language_id?
Thanks
Lorenzo