fluentd-ui/app/models/fluentd/setting/out_elasticsearch.rb
Kenji Okimoto c54ead20f1
Add label parameter
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-09-13 11:20:49 +09:00

43 lines
898 B
Ruby

class Fluentd
module Setting
class OutElasticsearch
include Fluentd::Setting::Plugin
register_plugin("output", "elasticsearch")
def self.initial_params
{
host: "127.0.0.1",
port: 9200,
index_name: "via_fluentd",
type_name: "via_fluentd",
logstash_format: true,
include_tag_key: false,
utc_index: true,
buffer_type: "file",
buffer: {
"0" => {
"type" => "file",
"path" => "/var/log/td-agent/buffer/elasticsearch",
}
},
}
end
def common_options
[
:label,
:pattern, :host, :port, :logstash_format,
:index_name, :type_name,
]
end
def hidden_options
[
:secondary, :inject, :buffer
]
end
end
end
end