Files
kolla-ansible/ansible/roles/common/templates/conf/output/00-local.conf.j2
Jeffrey Zhang 2ae1781d0e Disable elasticsearch output when enable_elasticsearch is no in fluentd
Change-Id: I93fe8141a88d6e0600a1f44fe49d96d7816fae87
Closes-Bug: #1664868
2017-02-15 20:12:33 +08:00

46 lines
1.0 KiB
Django/Jinja

<match syslog.local0.**>
@type copy
<store>
@type file
path /var/log/kolla/swift/swift_latest.*.log
symlink_path /var/log/kolla/swift/swift_latest.log
utc
append true
compress gzip
</store>
{% if enable_elasticsearch | bool %}
<store>
type elasticsearch
host {{ kolla_external_vip_address }}
port {{ elasticsearch_port }}
logstash_format true
logstash_prefix flog
flush_interval 15s
</store>
{% endif %}
</match>
<match syslog.local1.**>
@type copy
<store>
@type file
path /var/log/kolla/haproxy/haproxy_latest.*.log
symlink_path /var/log/kolla/haproxy/haproxy_latest.log
output_tag false
output_time false
utc
append true
compress gzip
</store>
{% if enable_elasticsearch | bool %}
<store>
type elasticsearch
host {{ kolla_external_vip_address }}
port {{ elasticsearch_port }}
logstash_format true
logstash_prefix flog
flush_interval 15s
</store>
{% endif %}
</match>