Kenji Okimoto a8401530ab
Use new style definition
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-05-24 18:26:17 +09:00

29 lines
470 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: {
"0" => {
type: :syslog
}
},
protocol_type: :udp,
}
end
def common_options
[
:tag, :bind, :port
]
end
end
end
end