diff --git a/ansible/roles/common/tasks/config.yml b/ansible/roles/common/tasks/config.yml index 22b18ec25f..b78bd2c4fa 100644 --- a/ansible/roles/common/tasks/config.yml +++ b/ansible/roles/common/tasks/config.yml @@ -291,6 +291,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 }}" } diff --git a/ansible/roles/common/templates/cron-logrotate-logstash.conf.j2 b/ansible/roles/common/templates/cron-logrotate-logstash.conf.j2 new file mode 100644 index 0000000000..9493ce8051 --- /dev/null +++ b/ansible/roles/common/templates/cron-logrotate-logstash.conf.j2 @@ -0,0 +1,3 @@ +"/var/log/kolla/logstash/*.log" +{ +} diff --git a/ansible/roles/common/templates/cron.json.j2 b/ansible/roles/common/templates/cron.json.j2 index 91134cd5a9..6881e24977 100644 --- a/ansible/roles/common/templates/cron.json.j2 +++ b/ansible/roles/common/templates/cron.json.j2 @@ -31,6 +31,7 @@ ( 'keystone', enable_keystone ), ( 'kibana', enable_kibana ), ( 'kuryr', enable_kuryr ), + ( 'logstash', enable_monasca ), ( 'magnum', enable_magnum ), ( 'manila', enable_manila ), ( 'mariadb', enable_mariadb ), diff --git a/releasenotes/notes/bug-1886787-013164ffc2f67264.yaml b/releasenotes/notes/bug-1886787-013164ffc2f67264.yaml new file mode 100644 index 0000000000..6bbc9d511d --- /dev/null +++ b/releasenotes/notes/bug-1886787-013164ffc2f67264.yaml @@ -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 `__