# Monitoring of logstash in kibana not working

**URL:** <https://discuss.elastic.co/t/monitoring-of-logstash-in-kibana-not-working/184100>\
**Category:** Logstash\
**Tags:** elastic-stack-monitoring\
**Created:** [June 4, 2019, 7:16am UTC](https://discuss.elastic.co/t/monitoring-of-logstash-in-kibana-not-working/184100 "2019-06-04T07:16:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yossib](https://avatars.discourse-cdn.com/v4/letter/y/a6a055/32.png) [@yossib](https://discuss.elastic.co/u/yossib)\
**Post date:** [June 4, 2019, 7:16am UTC](https://discuss.elastic.co/t/monitoring-of-logstash-in-kibana-not-working/184100/1 "2019-06-04T07:16:22Z")

</div>

3 node cluster, https configured  
configuration in logstash.yml:  
xpack.monitoring.enabled: true  
xpack.monitoring.elasticsearch.hosts: ["[https://esnode3.iucc.ac.il:9200](https://esnode3.iucc.ac.il:9200)", "[https://esnode2.iucc.ac.il:9200](https://esnode2.iucc.ac.il:9200)", "[https://esnode1.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"}  
...

---

<div class="post-metadata">

**Author:** ![cachedout](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cachedout/32/38707_2.png) [@cachedout](https://discuss.elastic.co/u/cachedout)\
**Post date:** [June 5, 2019, 3:12pm UTC](https://discuss.elastic.co/t/monitoring-of-logstash-in-kibana-not-working/184100/2 "2019-06-05T15:12:21Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![yossib](https://avatars.discourse-cdn.com/v4/letter/y/a6a055/32.png) [@yossib](https://discuss.elastic.co/u/yossib)\
**Post date:** [June 6, 2019, 7:37am UTC](https://discuss.elastic.co/t/monitoring-of-logstash-in-kibana-not-working/184100/3 "2019-06-06T07:37:55Z")

</div>

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** _

---

<div class="post-metadata">

**Author:** ![cachedout](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cachedout/32/38707_2.png) [@cachedout](https://discuss.elastic.co/u/cachedout)\
**Post date:** [June 6, 2019, 8:17am UTC](https://discuss.elastic.co/t/monitoring-of-logstash-in-kibana-not-working/184100/4 "2019-06-06T08:17:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![yossib](https://avatars.discourse-cdn.com/v4/letter/y/a6a055/32.png) [@yossib](https://discuss.elastic.co/u/yossib)\
**Post date:** [June 6, 2019, 8:52am UTC](https://discuss.elastic.co/t/monitoring-of-logstash-in-kibana-not-working/184100/5 "2019-06-06T08:52:53Z")

</div>

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** _

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 4, 2019, 8:52am UTC](https://discuss.elastic.co/t/monitoring-of-logstash-in-kibana-not-working/184100/6 "2019-07-04T08:52:53Z")

</div>

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