Different api for v5.
This commit is contained in:
parent
34708157f4
commit
0e2e883cd1
|
@ -246,7 +246,7 @@ class LogStash::Outputs::Jdbc < LogStash::Outputs::Base
|
||||||
|
|
||||||
def add_statement_event_params(statement, event)
|
def add_statement_event_params(statement, event)
|
||||||
@statement[1..-1].each_with_index do |i, idx|
|
@statement[1..-1].each_with_index do |i, idx|
|
||||||
value = event[i]
|
value = event.get(i)
|
||||||
|
|
||||||
value = if value.nil? and i.to_s =~ /%{/
|
value = if value.nil? and i.to_s =~ /%{/
|
||||||
event.sprintf(i)
|
event.sprintf(i)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user