File tree Expand file tree Collapse file tree 3 files changed +44
-23
lines changed
ansible/roles/common/templates Expand file tree Collapse file tree 3 files changed +44
-23
lines changed Original file line number Diff line number Diff line change 3
3
@type copy
4
4
<store >
5
5
@type file
6
- path /var/log/kolla/swift/swift_latest.*.log
6
+ path /var/log/kolla/swift/swift_latest
7
7
append true
8
- compress gzip
9
- <buffer >
10
- timekey_use_utc
8
+ # Disable timestamp in filename for logs
9
+ <buffer [] >
10
+ path /var/log/kolla/swift/swift_latest.*.buffer
11
11
</buffer >
12
12
</store >
13
13
{% if log_direct_to_elasticsearch %}
66
66
@type copy
67
67
<store >
68
68
@type file
69
- path /var/log/kolla/haproxy/haproxy_latest.*.log
70
- output_tag false
71
- output_time false
69
+ path /var/log/kolla/haproxy/haproxy_latest
72
70
append true
73
- compress gzip
74
- <buffer >
75
- timekey_use_utc
71
+ # Disable timestamp in filename for logs
72
+ <buffer [] >
73
+ path /var/log/kolla/haproxy/haproxy_latest.*.buffer
76
74
</buffer >
75
+ # Don't prepend syslog tag or timestamp to log output
76
+ <format >
77
+ output_tag false
78
+ output_time false
79
+ </format >
77
80
</store >
78
81
{% if log_direct_to_elasticsearch %}
79
82
<store >
131
134
@type copy
132
135
<store >
133
136
@type file
134
- path /var/log/kolla/glance-tls-proxy/glance-tls-proxy.*.log
135
- output_tag false
136
- output_time false
137
+ path /var/log/kolla/glance-tls-proxy/glance-tls-proxy
137
138
append true
138
- compress gzip
139
- <buffer >
140
- timekey_use_utc
139
+ # Disable timestamp in filename for logs
140
+ <buffer [] >
141
+ path /var/log/kolla/glance-tls-proxy/glance-tls-proxy.*.buffer
141
142
</buffer >
143
+ # Don't prepend syslog tag or timestamp to log output
144
+ <format >
145
+ output_tag false
146
+ output_time false
147
+ </format >
142
148
</store >
143
149
{% if log_direct_to_elasticsearch %}
144
150
<store >
193
199
@type copy
194
200
<store >
195
201
@type file
196
- path /var/log/kolla/neutron-tls-proxy/neutron-tls-proxy.*.log
197
- output_tag false
198
- output_time false
202
+ path /var/log/kolla/neutron-tls-proxy/neutron-tls-proxy
199
203
append true
200
- compress gzip
201
- <buffer >
202
- timekey_use_utc
204
+ # Disable timestamp in filename for logs
205
+ <buffer [] >
206
+ path /var/log/kolla/neutron-tls-proxy/neutron-tls-proxy.*.buffer
203
207
</buffer >
208
+ # Don't prepend syslog tag or timestamp to log output
209
+ <format >
210
+ output_tag false
211
+ output_time false
212
+ </format >
204
213
</store >
205
214
{% if log_direct_to_elasticsearch %}
206
215
<store >
Original file line number Diff line number Diff line change 1
- "/var/log/kolla/haproxy/haproxy .log"
1
+ "/var/log/kolla/haproxy/* .log"
2
2
{
3
3
}
Original file line number Diff line number Diff line change
1
+ ---
2
+ issues :
3
+ - |
4
+ Existing fluentd log rotation failed to delete old haproxy, swift,
5
+ glance-tls-proxy and neutron-tls-proxy logs. These will not be
6
+ deleted by the new logrotate config and will have to be removed
7
+ manually.
8
+ fixes :
9
+ - |
10
+ Existing fluentd log rotation failed to delete old haproxy, swift,
11
+ glance-tls-proxy and neutron-tls-proxy logs. Standardise rotation
12
+ and deletion of logs using logrotate.
You can’t perform that action at this time.
0 commit comments