# Missing metrics in Logstash node stats

**URL:** <https://discuss.elastic.co/t/missing-metrics-in-logstash-node-stats/348710>\
**Category:** Logstash\
**Tags:** elastic-stack-monitoring\
**Created:** [December 6, 2023, 10:32am UTC](https://discuss.elastic.co/t/missing-metrics-in-logstash-node-stats/348710 "2023-12-06T10:32:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ofekinger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ofekinger/32/122444_2.png) [@ofekinger](https://discuss.elastic.co/u/ofekinger)\
**Post date:** [December 6, 2023, 10:32am UTC](https://discuss.elastic.co/t/missing-metrics-in-logstash-node-stats/348710/1 "2023-12-06T10:32:17Z")

</div>

Hello everyone,  
I went over the code for a few Logstash plugins and noticed they had metrics that I can't see when running:  
`curl http://localhost:9600/_node/stats`

I'm talking about metrics like:

> <https://github.com/logstash-plugins/logstash-input-beats/blob/a6cdac9f80e21023ba6ea42c0cd55e6c0ab34a8d/lib/logstash/inputs/beats/message_listener.rb#L201>

And a few other places I found in other plugins (some are in filter plugins like dissect).

Am I missing something? Or do these metrics just not show up in the stats API?  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [December 6, 2023, 11:24am UTC](https://discuss.elastic.co/t/missing-metrics-in-logstash-node-stats/348710/2 "2023-12-06T11:24:35Z")

</div>

I don't think they are visible. You have [here](https://www.elastic.co/guide/en/beats/metricbeat/current/exported-fields-logstash.html) LS metric fields.

---

<div class="post-metadata">

**Author:** ![ofekinger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ofekinger/32/122444_2.png) [@ofekinger](https://discuss.elastic.co/u/ofekinger)\
**Post date:** [December 6, 2023, 12:10pm UTC](https://discuss.elastic.co/t/missing-metrics-in-logstash-node-stats/348710/3 "2023-12-06T12:10:16Z")

</div>

I'm using the stats API and not Metricbeat.  
The weird thing is that I do see other metrics (such as "workers" and "queue\_size" for the udp input plugin).  
I'm not sure why some of the metrics are visible in the node stats API and some aren't.

---

<div class="post-metadata">

**Author:** ![ofekinger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ofekinger/32/122444_2.png) [@ofekinger](https://discuss.elastic.co/u/ofekinger)\
**Post date:** [December 6, 2023, 2:20pm UTC](https://discuss.elastic.co/t/missing-metrics-in-logstash-node-stats/348710/4 "2023-12-06T14:20:08Z")

</div>

Never mind, I only checked the code and the basic configuration without connecting a beat to the running Logstash. Only then the metrics showed up.

---

<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:** [January 3, 2024, 2:20pm UTC](https://discuss.elastic.co/t/missing-metrics-in-logstash-node-stats/348710/5 "2024-01-03T14:20:26Z")

</div>

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