Organize some input plugins' parameters

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-06-07 16:46:46 +09:00
parent 2e3f24224a
commit 89296a331d
2 changed files with 15 additions and 1 deletions

View File

@ -12,6 +12,12 @@ class Fluentd
body_size_limit: "32m",
keepalive_timeout: "10s",
add_http_headers: false,
parse_type: "in_http",
parse: {
"0" => {
"type" => "in_http"
}
}
}
end
@ -23,6 +29,7 @@ class Fluentd
def hidden_options
[
:parse,
:backlog,
:blocking_timeout,
]

View File

@ -9,9 +9,10 @@ class Fluentd
{
bind: "0.0.0.0",
port: 5140,
parse_type: "syslog",
parse: {
"0" => {
type: :syslog
"type" => "syslog"
}
},
protocol_type: :udp,
@ -23,6 +24,12 @@ class Fluentd
:tag, :bind, :port
]
end
def hidden_options
[
:parse
]
end
end
end
end