# Metricbeat are not collecting all Logstash data

**URL:** <https://discuss.elastic.co/t/metricbeat-are-not-collecting-all-logstash-data/342889>\
**Category:** Beats\
**Tags:** elastic-stack-monitoring, metricbeat\
**Created:** [September 12, 2023, 8:51pm UTC](https://discuss.elastic.co/t/metricbeat-are-not-collecting-all-logstash-data/342889 "2023-09-12T20:51:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claudio\_Ract\_Costa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/claudio_ract_costa/32/26095_2.png) [@Claudio\_Ract\_Costa](https://discuss.elastic.co/u/Claudio_Ract_Costa)\
**Post date:** [September 12, 2023, 8:51pm UTC](https://discuss.elastic.co/t/metricbeat-are-not-collecting-all-logstash-data/342889/1 "2023-09-12T20:51:53Z")

</div>

Hi Community,

I have a ELK Stack 8.2.

I am trying to configure my Metricbeat to monitoring logstash node to monitore it but, for any reason, Kibana does not show all information of Logstash (like Events Emiited Rate, Eevents received, Evenets Emitted, ...) and, when i click in some pipeline, the error bellow appears:

```auto
Monitoring Request Error
Cannot read properties of undefined (reading 'graph')

```

Here's my configuration:

- metricbeat.yml

```auto
root@taishan1:/etc/metricbeat# cat /etc/metricbeat/metricbeat.yml | egrep -v "#" | egrep [a-Z]
metricbeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false
setup.template.settings:
  index.number_of_shards: 1
  index.codec: best_compression
setup.kibana:
  host: "10.129.137.139:5601"
output.elasticsearch:
  hosts: ["10.123.126.36:9200"]
processors:
  - add_host_metadata: ~
  - add_cloud_metadata: ~
  - add_docker_metadata: ~
  - add_kubernetes_metadata: ~

```

- logstash-xpack module configuration

```auto
root@taishan1:/etc/metricbeat/modules.d# cat logstash-xpack.yml
# Module: logstash
# Docs: https://www.elastic.co/guide/en/beats/metricbeat/8.2/metricbeat-module-logstash.html

- module: logstash
  metricsets:
      - node
      - node_stats
  xpack.enabled: true
  period: 10s
  hosts: ["localhost:9600"]
#username: "elastic"
#password: "EocfCCzPInXfT240Lr7U"

```

- module logstash-xpack enabled

```auto
root@taishan1:/etc/metricbeat/modules.d# metricbeat modules enable logstash-xpack

Module logstash-xpack is already enabled

```

- logstash.yml

```auto
claro@taishan1:/bkp/opt/logstash01/config$ cat logstash.yml | grep -v ^# | egrep [a-Z]
xpack.monitoring.enabled: false

```

Does anyone know what i am doing wrong ?

---

<div class="post-metadata">

**Author:** ![PRASHANT\_MEHTA](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashant_mehta/32/101764_2.png) [@PRASHANT\_MEHTA](https://discuss.elastic.co/u/PRASHANT_MEHTA)\
**Post date:** [September 15, 2023, 4:29pm UTC](https://discuss.elastic.co/t/metricbeat-are-not-collecting-all-logstash-data/342889/2 "2023-09-15T16:29:27Z")

</div>

@Claudio_Ract_Costa

I'm also facing similar issue and working on same.I will keep posted if found any solution.

---

<div class="post-metadata">

**Author:** ![Jason\_Paralta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jason_paralta/32/118856_2.png) [@Jason\_Paralta](https://discuss.elastic.co/u/Jason_Paralta)\
**Post date:** [October 13, 2023, 6:17am UTC](https://discuss.elastic.co/t/metricbeat-are-not-collecting-all-logstash-data/342889/3 "2023-10-13T06:17:38Z")

</div>

Hello ,

Were you able to resolve this issue?

---

<div class="post-metadata">

**Author:** ![PodarcisMuralis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/podarcismuralis/32/122606_2.png) [@PodarcisMuralis](https://discuss.elastic.co/u/PodarcisMuralis)\
**Post date:** [October 16, 2023, 6:24pm UTC](https://discuss.elastic.co/t/metricbeat-are-not-collecting-all-logstash-data/342889/4 "2023-10-16T18:24:28Z")

</div>

As far as i remember, either you should enable a module in modules.d by enabling it.

`./metricbeat modules enable logstash` and write all the settings such as metricsets in modules.d/logstash part.

Or you disable the modules with the same command but with disable instead of enable and use the configuration you have right now (you can also remove metricset, it is fetched automatically after a version but can not remember which one)

I got once many errors because i enabled in metricbeat.yml and under modules.d logstash at the same time. If you enable modules.d, it takes precedence over metricbeat.yml.

---

<div class="post-metadata">

**Author:** ![Claudio\_Ract\_Costa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/claudio_ract_costa/32/26095_2.png) [@Claudio\_Ract\_Costa](https://discuss.elastic.co/u/Claudio_Ract_Costa)\
**Post date:** [October 18, 2023, 4:11pm UTC](https://discuss.elastic.co/t/metricbeat-are-not-collecting-all-logstash-data/342889/5 "2023-10-18T16:11:57Z")

</div>

> [@PodarcisMuralis](#):
>
> enable mo

Not yet ☹

@PodarcisMuralis i will take a look in your suggestion. If resolve it, i post here.

---

<div class="post-metadata">

**Author:** ![Jason\_Paralta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jason_paralta/32/118856_2.png) [@Jason\_Paralta](https://discuss.elastic.co/u/Jason_Paralta)\
**Post date:** [October 18, 2023, 6:35pm UTC](https://discuss.elastic.co/t/metricbeat-are-not-collecting-all-logstash-data/342889/6 "2023-10-18T18:35:36Z")

</div>

> [@Claudio\_Ract\_Costa](#):
>
> Kibana does not show all information of Logstash (like Events Emiited Rate, Eevents received, Evenets Emitted, ...)

For this, try using this configuration and check if now events emmitted,received, rate etc is showing.  
Here I'm just avoiding the metricset. Simply try this config and check.

```auto
- module: logstash
  xpack.enabled: true
  period: 10s
  hosts: ["localhost:9600"]

```

In your above settings you've done this, avoid it and check.

```auto
metricsets:
      - node
      - node_stats

```

---

<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:** [November 15, 2023, 8:36pm UTC](https://discuss.elastic.co/t/metricbeat-are-not-collecting-all-logstash-data/342889/7 "2023-11-15T20:36:15Z")

</div>

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