Files
kolla-ansible/ansible/roles/common/templates/conf/output/00-local.conf.j2
ShunliZhou 24ed428f06 Remove symlink from fluentd global conf
As the logrotate will create new filename with timestamp, fluentd
with symlink will staled when restart fluentd and can not set
permission on the old file.

Remove symlink from the global conf.

Change-Id: I404868d5b5077b9f2135e37605421bc84717f9d3
Closes-Bug: #1685170
2017-05-11 09:38:22 +08:00

44 lines
916 B
Django/Jinja

<match syslog.local0.**>
@type copy
<store>
@type file
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
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>