kibana: log messages go to /var/log/kibana/kibana.log

This commit is contained in:
Jérémy Lecour 2018-05-22 15:17:16 +02:00 committed by Jérémy Lecour
parent 0054e4fdea
commit b4122be2b3
2 changed files with 17 additions and 0 deletions

View File

@ -13,6 +13,7 @@ The **patch** part changes incrementally at each release.
### Added
* elasticsearch: tmpdir configuration compatible with 5.x also
* elasticsearch: add http.publish_host variable
* kibana: log messages go to /var/log/kibana/kibana.log
### Changed

View File

@ -50,6 +50,22 @@
insertafter: '^#server.basePath:'
notify: restart kibana
- name: kibana log destination is present
file:
dest: /var/log/kibana
owner: kibana
group: kibana
mode: "0750"
state: directory
- name: kibana log messages go to custom file
lineinfile:
dest: /etc/kibana/kibana.yml
line: "logging.dest: \"/var/log/kibana/kibana.log\""
regexp: '^logging.dest:'
insertafter: '^#logging.dest:'
notify: restart kibana
- name: Kibana service is enabled and started
systemd:
name: kibana