# Monitoring Logstash with Metricbeat

**URL:** https://discuss.elastic.co/t/monitoring-logstash-with-metricbeat/230336
**Category:** Logstash
**Tags:** elastic-stack-monitoring
**Created:** [April 29, 2020, 8:31am UTC](https://discuss.elastic.co/t/monitoring-logstash-with-metricbeat/230336 "2020-04-29T08:31:00Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![cpiment](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cpiment/32/67350_2.png) [@cpiment](https://discuss.elastic.co/u/cpiment)
#### Post date: [April 29, 2020, 8:31am UTC](https://discuss.elastic.co/t/monitoring-logstash-with-metricbeat/230336/1 "2020-04-29T08:31:00Z")

</div>

Hi,

I'm configuring the monitoring feature of the Elastic Stack using metricbeat 7.6.2. I have configured a metricbeat with this configuration:

```auto
    - module: logstash
      metricsets:
        - node
        - node_stats
      period: 20s
      hosts:
        - "A:9600"
        - "B:9600"
        - "C:9600"
        - "D:9600"
      username: "xx"
      password: "yy"
      xpack.enabled: true

```

And now I can see information about the Logstash and Pipelines, but when I enter in a pipeline, the events/second in each stage are always 0.

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

Am I missing any configuration? If I query the logstash port I can see that the information is there, but Metricbeat doesn´t seem to retrieve it

---

<div class="post-metadata">

### Author: ![chrisronline](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrisronline/32/28230_2.png) [@chrisronline](https://discuss.elastic.co/u/chrisronline)
#### Post date: [April 29, 2020, 1:32pm UTC](https://discuss.elastic.co/t/monitoring-logstash-with-metricbeat/230336/2 "2020-04-29T13:32:02Z")

</div>

Hi @cpiment,

Let's take a look at the data and see if we can figure this out.

Can you run this query against the monitoring cluster?

```auto
POST .monitoring-logstash-*/_search
{
	"size": 1,
	"sort": {
		"timestamp": {
			"order": "desc"
		}
	},
	"query": {
		"bool": {
			"filter": [
				{
					"term": {
						"type": "logstash_stats"
					}
				}
			]
		}
	}
} 

```

---

<div class="post-metadata">

### Author: ![cpiment](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cpiment/32/67350_2.png) [@cpiment](https://discuss.elastic.co/u/cpiment)
#### Post date: [April 30, 2020, 6:25am UTC](https://discuss.elastic.co/t/monitoring-logstash-with-metricbeat/230336/3 "2020-04-30T06:25:11Z")

</div>

Hi @chrisronline,

I'm checking it today and now it's already reporting metrics. It seems I hadn't wait enought time to the visualization to show data.

Thanks for your help 🙂

---

<div class="post-metadata">

### Author: ![chrisronline](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrisronline/32/28230_2.png) [@chrisronline](https://discuss.elastic.co/u/chrisronline)
#### Post date: [April 30, 2020, 1:27pm UTC](https://discuss.elastic.co/t/monitoring-logstash-with-metricbeat/230336/4 "2020-04-30T13:27:01Z")

</div>

Glad to hear.

We have a long outstanding bug that might be involved here: [https://github.com/elastic/kibana/issues/28153](https://github.com/elastic/kibana/issues/28153)

---

<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: [May 28, 2020, 1:27pm UTC](https://discuss.elastic.co/t/monitoring-logstash-with-metricbeat/230336/5 "2020-05-28T13:27:23Z")

</div>

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