Parameters to be used to query database were always taking nil values for the set values.
:parameters=>{:name=>nil, :id=>nil}
Using hash[k] = event.sprintf(v); instead of hash[k] = event[event.sprintf(v)]; in line: https://github.com/wiibaa/logstash-filter-jdbc/blob/master/lib/logstash/filters/jdbc.rb#L53
did the job for me.
Actually I am new to logstash/ruby. Do not know if I am doing right.
Parameters to be used to query database were always taking nil values for the set values.
:parameters=>{:name=>nil, :id=>nil}
Using hash[k] = event.sprintf(v); instead of hash[k] = event[event.sprintf(v)]; in line: https://github.com/wiibaa/logstash-filter-jdbc/blob/master/lib/logstash/filters/jdbc.rb#L53
did the job for me.
Actually I am new to logstash/ruby. Do not know if I am doing right.