# Metrics not working when using Logstash

**URL:** https://discuss.elastic.co/t/metrics-not-working-when-using-logstash/302705
**Category:** Logstash
**Created:** [April 19, 2022, 10:09am UTC](https://discuss.elastic.co/t/metrics-not-working-when-using-logstash/302705 "2022-04-19T10:09:18Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [April 19, 2022, 2:28pm UTC](https://discuss.elastic.co/t/metrics-not-working-when-using-logstash/302705/2 "2022-04-19T14:28:42Z")

</div>

Please take a look at this

> **[Use ingest pipelines for parsing | Logstash Reference \[8.11\] | Elastic](https://www.elastic.co/guide/en/logstash/current/use-ingest-pipelines.html)**

And this

> [@Questions On Logstash Conf File](https://discuss.elastic.co/t/questions-on-logstash-conf-file/282149/2):
>
> Your when using an architecture like Beats \> Logstash \> Elasticsearch Your Logstash conf file should look like the following ################################################ # beats-\>logstash-\>es default config. ################################################ input { beats { port =\> 5044 } } output { if [@metadata][pipeline] { elasticsearch { hosts =\> "http://localhost:9200" manage\_template =\> false index =\> "%{[@metadata][beat]}-%{[@metadata][version]}" …

---

_[View the full topic](https://discuss.elastic.co/t/metrics-not-working-when-using-logstash/302705)._
