Kenji Okimoto 8b776469b5
Organize initial parameters
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-18 14:38:07 +09:00

50 lines
1.0 KiB
Ruby

class Fluentd
module Setting
class OutForward
include Fluentd::Setting::Plugin
register_plugin("output", "forward")
config_section :secondary do
config_param :path, :string
end
def self.initial_params
{
buffer_type: "memory",
buffer: {
"0" => {
"type" => "memory",
}
},
secondary: {
"0" => {
"type" => "file",
}
}
}
end
# TODO overwrite this method to support transport parameter and transport section
# def self.permit_params
# super
# end
def common_options
[
:pattern, :server, :secondary,
]
end
def hidden_options
[
:inject, :buffer,
:host, :port,
# We don't support TLS configuration via fluentd-ui for now.
:transport, :tls_version, :tls_ciphers, :tls_insecure_mode, :tls_verify_hostname, :tls_cert_path
]
end
end
end
end