Class: Fluent::TextParser::NginxJSONishParser
- Inherits:
-
JSONishParser
- Object
- JSONParser
- JSONishParser
- Fluent::TextParser::NginxJSONishParser
- Defined in:
- lib/fluent/plugin/parser_nginx_jsonish.rb
Instance Method Summary collapse
Methods inherited from JSONishParser
Constructor Details
This class inherits a constructor from Fluent::TextParser::JSONishParser
Instance Method Details
#configure(conf) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# 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 |