Skip to content
Snippets Groups Projects
Commit d8b2c72f authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Fix log rotation for fluentd created files"

parents 2d72fc5d 79b59e2c
No related branches found
No related tags found
No related merge requests found
......@@ -3,11 +3,11 @@
@type copy
<store>
@type file
path /var/log/kolla/swift/swift_latest.*.log
path /var/log/kolla/swift/swift_latest
append true
compress gzip
<buffer>
timekey_use_utc
# Disable timestamp in filename for logs
<buffer []>
path /var/log/kolla/swift/swift_latest.*.buffer
</buffer>
</store>
{% if log_direct_to_elasticsearch %}
......@@ -66,14 +66,17 @@
@type copy
<store>
@type file
path /var/log/kolla/haproxy/haproxy_latest.*.log
output_tag false
output_time false
path /var/log/kolla/haproxy/haproxy_latest
append true
compress gzip
<buffer>
timekey_use_utc
# Disable timestamp in filename for logs
<buffer []>
path /var/log/kolla/haproxy/haproxy_latest.*.buffer
</buffer>
# Don't prepend syslog tag or timestamp to log output
<format>
output_tag false
output_time false
</format>
</store>
{% if log_direct_to_elasticsearch %}
<store>
......@@ -131,14 +134,17 @@
@type copy
<store>
@type file
path /var/log/kolla/glance-tls-proxy/glance-tls-proxy.*.log
output_tag false
output_time false
path /var/log/kolla/glance-tls-proxy/glance-tls-proxy
append true
compress gzip
<buffer>
timekey_use_utc
# Disable timestamp in filename for logs
<buffer []>
path /var/log/kolla/glance-tls-proxy/glance-tls-proxy.*.buffer
</buffer>
# Don't prepend syslog tag or timestamp to log output
<format>
output_tag false
output_time false
</format>
</store>
{% if log_direct_to_elasticsearch %}
<store>
......@@ -193,14 +199,17 @@
@type copy
<store>
@type file
path /var/log/kolla/neutron-tls-proxy/neutron-tls-proxy.*.log
output_tag false
output_time false
path /var/log/kolla/neutron-tls-proxy/neutron-tls-proxy
append true
compress gzip
<buffer>
timekey_use_utc
# Disable timestamp in filename for logs
<buffer []>
path /var/log/kolla/neutron-tls-proxy/neutron-tls-proxy.*.buffer
</buffer>
# Don't prepend syslog tag or timestamp to log output
<format>
output_tag false
output_time false
</format>
</store>
{% if log_direct_to_elasticsearch %}
<store>
......
"/var/log/kolla/haproxy/haproxy.log"
"/var/log/kolla/haproxy/*.log"
{
}
---
issues:
- |
Existing fluentd log rotation failed to delete old haproxy, swift,
glance-tls-proxy and neutron-tls-proxy logs. These will not be
deleted by the new logrotate config and will have to be removed
manually.
fixes:
- |
Existing fluentd log rotation failed to delete old haproxy, swift,
glance-tls-proxy and neutron-tls-proxy logs. Standardise rotation
and deletion of logs using logrotate.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment