mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-08 07:17:07 +02:00
26 lines
367 B
Ruby
26 lines
367 B
Ruby
class Fluentd
|
|
module Setting
|
|
class ParserJson
|
|
include Fluentd::Setting::Plugin
|
|
|
|
register_plugin("parser", "json")
|
|
|
|
def self.initial_params
|
|
{
|
|
json_parser: "oj"
|
|
}
|
|
end
|
|
|
|
def common_options
|
|
[]
|
|
end
|
|
|
|
def advanced_options
|
|
[
|
|
:json_parser
|
|
]
|
|
end
|
|
end
|
|
end
|
|
end
|