class LogStash::Filters::Jdbc::Lookup::Getfier
Public Class Methods
new(param)
click to toggle source
# File lib/logstash/filters/jdbc/lookup.rb, line 24 def initialize(param) @param = param end
Public Instance Methods
fetch(event, result)
click to toggle source
# File lib/logstash/filters/jdbc/lookup.rb, line 28 def fetch(event, result) value = event.get(@param) if value.nil? || value.is_a?(Hash) || value.is_a?(Array) # Array or Hash is not suitable result.invalid_parameters_push(@param) end value end