I have tried by my own, but I'm unable to figure out what I'm doing wrong here. I get a reply from a SQL database as an enrichment of my data. The SQL reply is an array and looks like:
The error message indicates that there is no sql_return field. Please show an example event produced by Logstash, preferably the output from a stdout { codec => rubydebug } output plugin.
Hi, thanks for your reply. I have messed up the error message. This was not related to this error and I have updated my previous post accordingly. I have also attached the requested ruby debug output.
Sorry for being not clear, yes it is one event enriched by the jdbc_streaming filter that gets back two rows from the SQL server. I messed copying the output to this post. The field is just one time there. I try to split the SQL reply (field: dst_port_info) which contains one or more elements to the same document.
I think split is creating two documents for each element in the array, but I'm aiming to have the elements and values joined together in the same document.
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.