Skip to content
Snippets Groups Projects
01-es.conf.j2 1.12 KiB
Newer Older
<match **>
    @type copy
zhubingbing's avatar
zhubingbing committed
    <store>
       @type elasticsearch
       host {{ elasticsearch_address }}
zhubingbing's avatar
zhubingbing committed
       port {{ elasticsearch_port }}
       scheme {{ fluentd_elasticsearch_scheme }}
{% if fluentd_elasticsearch_path != '' %}
       path {{ fluentd_elasticsearch_path }}
{% endif %}
{% if fluentd_elasticsearch_scheme == 'https' %}
       ssl_version {{ fluentd_elasticsearch_ssl_version }}
       ssl_verify {{ fluentd_elasticsearch_ssl_verify }}
{% if fluentd_elasticsearch_cacert | length > 0 %}
       ca_file {{ fluentd_elasticsearch_cacert }}
{% endif %}
{% endif %}
{% if fluentd_elasticsearch_user != '' and fluentd_elasticsearch_password != ''%}
       user {{ fluentd_elasticsearch_user }}
       password {{ fluentd_elasticsearch_password }}
{% endif %}
zhubingbing's avatar
zhubingbing committed
       logstash_format true
       logstash_prefix {{ kibana_log_prefix }}
       request_timeout {{ fluentd_elasticsearch_request_timeout }}
       suppress_type_name true
       <buffer>
         @type file
         path /var/lib/fluentd/data/elasticsearch.buffer/openstack.*
         flush_interval 15s
       </buffer>
zhubingbing's avatar
zhubingbing committed
    </store>
</match>