out_elasticsearch
Output plugin writes records into Elasticsearch. By default, it creates records using bulk api which performs multiple indexing operations in a single API call. This reduces overhead and can greatly increase indexing speed. This means that when you first import records using the plugin, records are not immediately pushed to Elasticsearch.chunk_keys
condition has been met. To change the output frequency, please specify the time
in chunk_keys
and specify timekey
value in the configuration.out_elasticsearch
has been included in the standard distribution of td-agent
since v3.0.1, td-agent
users do not need to install it manually.td-agent
, please install this plugin using fluent-gem
:@type
(required)elasticsearch
.host
(optional)localhost
).port
(optional)9200
).hosts
(optional)host
and port
options are ignored.user
, password
(optional)nil
):scheme
(optional)https
if your Elasticsearch endpoint supports SSL (default: http
).path
(optional)nil
).index_name
(optional)fluentd
).chunk_keys
. Also, it needs to specify timekey for time slice of chunk:logstash_format
(optional)true
, Fluentd uses the conventional index name format logstash-%Y.%m.%d
(default: false
). This option supersedes the index_name
option.@log_level
option@log_level
option allows the user to set different levels of logging for each plugin.fatal
, error
, warn
, info
, debug
, trace
.logstash_prefix
(optional)logstash_format
is true
(default: logstash
).%{}
style placeholders to escape for URL encoding needed characters.