mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-12 01:07:09 +02:00
35 lines
682 B
Ruby
35 lines
682 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,
|
|
}
|
|
end
|
|
|
|
def common_options
|
|
[
|
|
:pattern, :host, :port, :logstash_format,
|
|
:index_name, :type_name,
|
|
]
|
|
end
|
|
|
|
def hidden_options
|
|
[
|
|
:secondary, :inject, :buffer
|
|
]
|
|
end
|
|
end
|
|
end
|
|
end
|