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['maps'].is_a?(Array) conf['maps'] = ([ 'slashes', 'nulls' ] + conf['maps']).uniq else conf['maps'] = [ 'slashes', 'nulls' ] end if not (conf['message_key'] and conf['message_key'].is_empty?) conf['message_key'] = 'request' end super(conf) end |