fluentd-ui/app/models/fluentd/setting/in_syslog.rb
Kenji Okimoto 89296a331d Organize some input plugins' parameters
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-07 17:18:00 +09:00

36 lines
580 B
Ruby

class Fluentd
module Setting
class InSyslog
include Fluentd::Setting::Plugin
register_plugin("input", "syslog")
def self.initial_params
{
bind: "0.0.0.0",
port: 5140,
parse_type: "syslog",
parse: {
"0" => {
"type" => "syslog"
}
},
protocol_type: :udp,
}
end
def common_options
[
:tag, :bind, :port
]
end
def hidden_options
[
:parse
]
end
end
end
end