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
44 lines
916 B
Django/Jinja
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>
|