forked from evolix/ansible-roles
kibana: log messages go to /var/log/kibana/kibana.log
This commit is contained in:
parent
0054e4fdea
commit
b4122be2b3
|
@ -13,6 +13,7 @@ The **patch** part changes incrementally at each release.
|
||||||
### Added
|
### Added
|
||||||
* elasticsearch: tmpdir configuration compatible with 5.x also
|
* elasticsearch: tmpdir configuration compatible with 5.x also
|
||||||
* elasticsearch: add http.publish_host variable
|
* elasticsearch: add http.publish_host variable
|
||||||
|
* kibana: log messages go to /var/log/kibana/kibana.log
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,22 @@
|
||||||
insertafter: '^#server.basePath:'
|
insertafter: '^#server.basePath:'
|
||||||
notify: restart kibana
|
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
|
- name: Kibana service is enabled and started
|
||||||
systemd:
|
systemd:
|
||||||
name: kibana
|
name: kibana
|
||||||
|
|
Loading…
Reference in a new issue