class Fluent::TextParser::NginxJSONishParser
Public Instance Methods
configure(conf)
click to toggle source
Calls superclass method
Fluent::TextParser::JSONishParser#configure
# File lib/fluent/plugin/parser_nginx_jsonish.rb, line 9 def configure(conf) if conf.key?('maps') conf['maps'] = ([ 'slashes', 'nulls' ] + JSON.parse(conf['maps'])).uniq.to_json else conf['maps'] = [ 'slashes', 'nulls' ].to_json end super(conf) if @message_key.nil? or @message_key.empty? @message_key = 'request' end end