# Logstash not monitored by metricbeat

**URL:** https://discuss.elastic.co/t/logstash-not-monitored-by-metricbeat/299914
**Category:** Beats
**Tags:** metricbeat
**Created:** [March 17, 2022, 4:31am UTC](https://discuss.elastic.co/t/logstash-not-monitored-by-metricbeat/299914 "2022-03-17T04:31:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ashiqab](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashiqab/32/103144_2.png) [@ashiqab](https://discuss.elastic.co/u/ashiqab)
#### Post date: [March 17, 2022, 4:31am UTC](https://discuss.elastic.co/t/logstash-not-monitored-by-metricbeat/299914/1 "2022-03-17T04:31:18Z")

</div>

Hello,

Still learning the set up of elastic stack, I am now stuck with metricbeat failing to register my logstash node on Kibana. However I could successfully register and monitor Elasticsearch and Kibana using metricbeat. Only stuck with Logstash.

Here is how my metricbeat monitor page looks like:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/3/23166170656427373b6e8434fa361c6b492e55c9.png)

As you could see Logstash node is not detected. I followed the set up steps mentioned in the stack monitoring setup page, but in vain.

Here is my logstash.yml file:

_pipeline.batch.size: 125_

- pipeline.batch.delay: 5\*
- node.name: dlmlogstash\*  
_path.data: /var/lib/logstash_
- pipeline.id: main\*
- pipeline.workers: 2\*  
_path.config:/etc/logstash/conf.d/_

_log.level: info_  
_path.logs: /var/log/logstash_  
_xpack.monitoring.enabled: true_  
_xpack.monitoring.Elasticsearch.username: elastic_  
_xpack.monitoring.Elasticsearch.password: passwd_  
_xpack.monitoring.Elasticsearch.hosts: ["[http://xx.xx.xx.xx:9200](http://xx.xx.xx.xx:9200)"]_

_output.Elasticsearch:_

- hosts: ["[http://xx.xx.xx.xx:5601](http://xx.xx.xx.xx:5601)"]\*
- username: "elastic"\*
- password: "passwd"\*

Here are my metricbeat set ups:

metricbeat.yml:

_metricbeat.config.modules:_

- path: ${path.config}/modules.d/_.yml_
- reload.enabled: true\*
- reload.period: 10s\*

_setup.template.settings:_

- index.number\_of\_shards: 1\*
- index.codec: best\_compression\*

_name: ldxxxxx_

_setup.kibana:_

- host: "xx.xx.xx.xx:5601"\*

_output.Elasticsearch:_

- hosts: ["xx.xx.xx.xx:9200"]\*
- protocol: "http"\*
- username: "elastic"\*
- password: "passwd"\*

_processors:_

- 
  - add\_host\_metadata: ~\*

- 
  - add\_cloud\_metadata: ~\*

- 
  - add\_docker\_metadata: ~\*

- 
  - add\_kubernetes\_metadata: ~\*

_logging.level: info_

_logging.selectors: ["_"]\*

_logging.to\_files: true_  
_logging.files:_

- path: /var/log/metricbeat\*
- name: metricbeat\*
- keepfiles: 7\*
- permissions: 0644\*

_monitoring.enabled: true_  
_monitoring.Elasticsearch:_

logstash-xpack.yml:

_# Module: logstash_  
_# Docs: [Logstash module | Metricbeat Reference [master] | Elastic](https://www.elastic.co/guide/en/beats/metricbeat/master/metricbeat-module-logstash.html)_

_- module: logstash_

- xpack.enabled: true\*
- period: 10s\*
- hosts: ["xx.xx.xx.xx:9600"]\*
- username: "elastic"\*
- password: "passwd"\*

Could you please guide me as to where I should focus in order to rectify this?

Thanks and regards,  
Ashiq Aboo Backer

---

<div class="post-metadata">

### Author: ![sparker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sparker/32/103180_2.png) [@sparker](https://discuss.elastic.co/u/sparker)
#### Post date: [March 17, 2022, 4:45pm UTC](https://discuss.elastic.co/t/logstash-not-monitored-by-metricbeat/299914/2 "2022-03-17T16:45:38Z")

</div>

Within the logstash.yml file, try changing "xpack.monitoring.enabled: true" to "xpack.monitoring.enabled: false".

I believe that setting is for legacy collection (not metricbeat collection).

> **[Collect Logstash monitoring data with Metricbeat | Logstash Reference \[8.1\] |...](https://www.elastic.co/guide/en/logstash/current/monitoring-with-metricbeat.html)**

---

<div class="post-metadata">

### Author: ![ashiqab](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashiqab/32/103144_2.png) [@ashiqab](https://discuss.elastic.co/u/ashiqab)
#### Post date: [March 18, 2022, 6:36am UTC](https://discuss.elastic.co/t/logstash-not-monitored-by-metricbeat/299914/3 "2022-03-18T06:36:48Z")

</div>

Thank you, but this did not fix the issue.

I have disabled xpack monitoring in logstash.yml file.

Also i followed all steps listed in [Collect Logstash monitoring data with Metricbeat | Logstash Reference [8.1] | Elastic](https://www.elastic.co/guide/en/logstash/current/monitoring-with-metricbeat.html)

However this doesn't fix my problem.

In fact, my Kibana cluster overview does not show any Logstash nodes!

Is there anything else I should look at?

Thanks and regards,  
Ashiq Aboo Backer

---

<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: [April 15, 2022, 8:37am UTC](https://discuss.elastic.co/t/logstash-not-monitored-by-metricbeat/299914/4 "2022-04-15T08:37:34Z")

</div>

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