Monitoring of logstash in kibana not working

3 node cluster, https configured
configuration in logstash.yml:
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.hosts: ["https://esnode3.iucc.ac.il:9200", "https://esnode2.iucc.ac.il:9200", "https://esnode1.iucc.ac.il:9200"]
xpack.monitoring.elasticsearch.username:
xpack.monitoring.elasticsearch.password:
xpack.monitoring.elasticsearch.ssl.certificate_authority: /etc/ssl/certs/DigiCertCA.crt

error in logstash (repeating forever):
[2019-06-04T10:09:37,755][ERROR][logstash.inputs.metrics ] Failed to create monitoring event {:message=>"undefined method []' for nil:NilClass", :error=>"NoMethodError"} [2019-06-04T10:09:47,762][ERROR][logstash.inputs.metrics ] Failed to create monitoring event {:message=>"undefined method' for nil:NilClass", :error=>"NoMethodError"}
[2019-06-04T10:09:57,768][ERROR][logstash.inputs.metrics ] Failed to create monitoring event {:message=>"undefined method []' for nil:NilClass", :error=>"NoMethodError"} [2019-06-04T10:10:07,775][ERROR][logstash.inputs.metrics ] Failed to create monitoring event {:message=>"undefined method' for nil:NilClass", :error=>"NoMethodError"}
[2019-06-04T10:10:17,781][ERROR][logstash.inputs.metrics ] Failed to create monitoring event {:message=>"undefined method `' for nil:NilClass", :error=>"NoMethodError"}
...

@yossib Is there a reason that you have the xpack.monitoring.elasticsearch.username and xpack.monitoring.elasticsearch.password fields without a value? If you don't have authentication configured on your Elasticsearch cluster than these settings should be commented out.

They do have value, just didn't add it to the discussion…

Sincerely Yours,

Yossi Baruch, Cyber and IT specialist

office: +972-3-646-0569

fax: +972-3-646-0557

MTFBWY

Hi @yossib. What version of Logstash are you running?

Logstash 7.0.0-1

All my stack is 7.0.0

Sincerely Yours,

Yossi Baruch, Cyber and IT specialist

office: +972-3-646-0569

fax: +972-3-646-0557

MTFBWY

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.