blob: a9f1411433447c0b7c8c9cd6a11ac61f85bd93ee [file] [log] [blame]
@type elasticsearch
host {{ values.host }}
port {{ values.get("port", 9200) }}
scheme {{ values.get("scheme", "http") }}
{%- if values.get("scheme", "http") == "https" %}
ssl_verify true
ca_file /etc/ssl/certs/ca-certificates.crt
ssl_version TLSv1_2
{%- endif %}
type_name {{ values.get("es_type_name", "message") }}
tag_key {{ values.get("tag_key", "Logger") }}
include_tag_key true
time_key Timestamp
time_key_exclude_timestamp true
logstash_format true
logstash_prefix {{ values.get("es_index_name", "log") }}
logstash_dateformat %Y.%m.%d
flush_interval {{ values.get("flush_interval", "10s") }}
request_timeout {{ values.get("request_timeout", "10s") }}
{%- if values.get("buffer") %}
<buffer>
{%- with values=values.get("buffer") %}
@type {{ values.get("type", "file") }}
{% include "fluentd/files/buffer/" + values.get("type", "file") + ".conf" %}
{%- endwith %}
</buffer>
{%- endif %}