please i have some quetions about jdbc_streaming , i made such a configuration to extract some data using jdbc_streaming but i didn't acheive to my goal .
there is my configuration file
jdbc_streaming {
jdbc_driver_library => ".............."
jdbc_driver_class => "................."
jdbc_connection_string => "............."
jdbc_user => "........"
jdbc_password => "........"
parameters => {"variable"=>"field2"}
statement => "SELECT field5 From database2 where field4 =:variable"
then I think you could use the alterfilter that uses the coalesce function.
alter {
coalesce => [
"code", "%{[code][field5]}"]
}
that will create the field you want with the value you want. Then you just remove the old one. It is not a pretty solution but I think it should work IF I understood correctly your problem...
actually when i run logstash without mode debug i have nothing in output, and when i run on mode debug i have
{"event"=>{"code"=>[ "field5":"valueoffield5"] } as you said
and i haven't any output in elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.