fluentd-ui/app/models/fluentd/setting/parser_syslog.rb
Kenji Okimoto 12c56811d2
Add parameters to some parser plugins
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-07 16:37:49 +09:00

30 lines
508 B
Ruby

class Fluentd
module Setting
class ParserSyslog
include Fluentd::Setting::Plugin
register_plugin("parser", "syslog")
# Overwrite type of time_format
config_param(:time_format, :string)
def self.initial_params
{}
end
def common_options
[
:time_format,
:with_priority,
]
end
def advanced_options
[
:message_format,
:rfc5424_time_format
]
end
end
end
end