mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-14 10:17:06 +02:00
33 lines
592 B
Ruby
33 lines
592 B
Ruby
class Fluentd
|
|
module Setting
|
|
class OutTdlog
|
|
include Fluentd::Setting::Plugin
|
|
|
|
register_plugin("output", "tdlog")
|
|
|
|
def self.initial_params
|
|
{
|
|
pattern: "td.*.*",
|
|
buffer: {
|
|
"@type" => "file",
|
|
"path" => "/var/log/td-agent/buffer/td",
|
|
},
|
|
auto_create_table: true,
|
|
}
|
|
end
|
|
|
|
def common_options
|
|
[
|
|
:pattern, :apikey, :auto_create_table, :database, :table,
|
|
]
|
|
end
|
|
|
|
def hidden_options
|
|
[
|
|
:secondary
|
|
]
|
|
end
|
|
end
|
|
end
|
|
end
|