class Fluent::Plugin::UniformFilter
Public Instance Methods
configure(conf)
click to toggle source
Calls superclass method
# File lib/fluent/plugin/filter_uniform.rb, line 30 def configure(conf) super @maps = conf['maps'].map {|k| k.downcase} @to_lower = conf['to_lower'] end
filter(tag, time, record)
click to toggle source
Calls superclass method
# File lib/fluent/plugin/filter_uniform.rb, line 36 def filter(tag, time, record) super out = {} record.each{ |key, value| if @maps.include? key.downcase if @to_lower out[key.downcase] = value else out[key] = value end end } out end