Fix Logstash 2.4 log rotation

Logstash 2.4 uses integrated in container logrotate configuration
which tries to rotate logs in /var/log/logstash and Kolla's Logstash
logs are in /var/log/kolla/logstash/
This patch adds kolla-ansible internal logrotate config for Logstash

Change-Id: Ifbab7b673ba87925e52bb01c0996479eb1b76c44
Closes-Bug: #1886787
(cherry picked from commit 0e353d3f57)
This commit is contained in:
Bartosz Bezak 2020-07-14 11:55:31 +00:00
parent e848a4d4f3
commit 1aeed4343b
4 changed files with 14 additions and 0 deletions

View File

@ -230,6 +230,7 @@
- { name: "keystone", enabled: "{{ enable_keystone }}" }
- { name: "kibana", enabled: "{{ enable_kibana }}" }
- { name: "kuryr", enabled: "{{ enable_kuryr }}" }
- { name: "logstash", enabled: "{{ enable_monasca }}" }
- { name: "magnum", enabled: "{{ enable_magnum }}" }
- { name: "manila", enabled: "{{ enable_manila }}" }
- { name: "mariadb", enabled: "{{ enable_mariadb }}" }

View File

@ -0,0 +1,3 @@
"/var/log/kolla/logstash/*.log"
{
}

View File

@ -30,6 +30,7 @@
( 'keystone', enable_keystone ),
( 'kibana', enable_kibana ),
( 'kuryr', enable_kuryr ),
( 'logstash', enable_monasca ),
( 'magnum', enable_magnum ),
( 'manila', enable_manila ),
( 'mariadb', enable_mariadb ),

View File

@ -0,0 +1,9 @@
---
fixes:
- |
This patch adds ``kolla-ansible`` internal logrotate config for
Logstash. Logstash 2.4 uses integrated in container logrotate
configuration which tries to rotate logs in /var/log/logstash
while ``kolla-ansible`` deployed Logstash logs are in
/var/log/kolla/logstash.
`LP#1886787 <https://launchpad.net/bugs/1886787>`__