fluentd-ui/app/models/fluentd/setting/in_syslog.rb
Kenji Okimoto c54ead20f1
Add label parameter
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-09-13 11:20:49 +09:00

36 lines
608 B
Ruby

class Fluentd
module Setting
class InSyslog
include Fluentd::Setting::Plugin
register_plugin("input", "syslog")
def self.initial_params
params = {
parse_type: "syslog",
parse: {
"0" => {
"type" => "syslog"
}
}
}
super.compact.deep_merge(params)
end
def common_options
[
:label, :tag, :bind, :port
]
end
def hidden_options
[
:parse,
:transport,
:blocking_timeout
]
end
end
end
end