class Fluent::Plugin::RenameKeyFilter

Public Instance Methods

configure(conf) click to toggle source
Calls superclass method
# File lib/fluent/plugin/filter_rename_key.rb, line 12
def configure conf
  super

  create_rename_rules(conf)
  create_replace_rules(conf)

  if @rename_rules.empty? && @replace_rules.empty?
    raise Fluent::ConfigError, 'No rename nor replace rule given'
  end
end
filter(_tag, _time, record) click to toggle source
# File lib/fluent/plugin/filter_rename_key.rb, line 23
def filter _tag, _time, record
  replace_key(rename_key(record))
end