From 8c27d0e0f13bd6a99394b101c6c4dddaa2763173 Mon Sep 17 00:00:00 2001 From: liza-mae Date: Fri, 8 Feb 2019 15:57:09 -0700 Subject: [PATCH] Update logstash params (#97) --- .../xpack_logstash/tasks/linux/xpack_logstash_config.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ansible/roles/xpack_logstash/tasks/linux/xpack_logstash_config.yml b/ansible/roles/xpack_logstash/tasks/linux/xpack_logstash_config.yml index 13f1ba12121e3..52da03398900a 100644 --- a/ansible/roles/xpack_logstash/tasks/linux/xpack_logstash_config.yml +++ b/ansible/roles/xpack_logstash/tasks/linux/xpack_logstash_config.yml @@ -31,10 +31,11 @@ marker: '# {mark} ANSIBLE MANAGED BLOCK LOGSTASH XPACK PARAMETERS' insertafter: EOF content: | - xpack.monitoring.elasticsearch.url: https://{{ current_host_ip }}:{{ elasticsearch_port }} - xpack.monitoring.elasticsearch.username: {{ elasticsearch_username }} + xpack.monitoring.enabled: true + xpack.monitoring.elasticsearch.hosts: https://{{ current_host_ip }}:{{ elasticsearch_port }} + xpack.monitoring.elasticsearch.username: logstash_system xpack.monitoring.elasticsearch.password: {{ elasticsearch_password }} - xpack.monitoring.elasticsearch.ssl.ca: {{ logstash_rootdir | trim }}/ca/ca.crt + xpack.monitoring.elasticsearch.ssl.certificate_authority: {{ logstash_rootdir | trim }}/ca/ca.crt path.config: {{ logstash_conf_path }} path.logs: {{ logstash_log_dir }} become: '{{ logstash_run_as_root | default(omit) }}'