mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-11 08:47:06 +02:00
36 lines
580 B
Ruby
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
|