mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-11 16:57:11 +02:00
Organize initial_params
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
parent
799312636c
commit
bdacc80488
@ -6,17 +6,15 @@ class Fluentd
|
||||
register_plugin("input", "syslog")
|
||||
|
||||
def self.initial_params
|
||||
{
|
||||
bind: "0.0.0.0",
|
||||
port: 5140,
|
||||
params = {
|
||||
parse_type: "syslog",
|
||||
parse: {
|
||||
"0" => {
|
||||
"type" => "syslog"
|
||||
}
|
||||
},
|
||||
protocol_type: :udp,
|
||||
}
|
||||
}
|
||||
super.compact.deep_merge(params)
|
||||
end
|
||||
|
||||
def common_options
|
||||
|
@ -10,7 +10,7 @@ class Fluentd
|
||||
end
|
||||
|
||||
def self.initial_params
|
||||
{
|
||||
params = {
|
||||
buffer_type: "memory",
|
||||
buffer: {
|
||||
"0" => {
|
||||
@ -23,6 +23,7 @@ class Fluentd
|
||||
}
|
||||
}
|
||||
}
|
||||
super.except(:transport).compact.deep_merge(params)
|
||||
end
|
||||
|
||||
# TODO overwrite this method to support transport parameter and transport section
|
||||
|
Loading…
Reference in New Issue
Block a user