# Getting metricbeat error on 7.14 v

**URL:** <https://discuss.elastic.co/t/getting-metricbeat-error-on-7-14-v/282272>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [August 23, 2021, 9:11pm UTC](https://discuss.elastic.co/t/getting-metricbeat-error-on-7-14-v/282272 "2021-08-23T21:11:29Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [August 24, 2021, 4:50pm UTC](https://discuss.elastic.co/t/getting-metricbeat-error-on-7-14-v/282272/5 "2021-08-24T16:50:42Z")

</div>

What is the output of

`metricbeat version`

If you are still getting 7.4 is there another host with metricbeat running?

If you are using 7.14 and want ILM etc etc. you should run

`metricbeat setup -e`

first while metricbeat is pointing to elasticsearch this will set up all the assets ILM etc...

Then change metricbeat.yml to point to logstash and use the pipeline below.

(do the same for filebeat)

You can look at [this thread](https://discuss.elastic.co/t/nginx-access-and-error-logs-show-incorroct-value-in-kibana-dashboard/269453/8) where I explain this

Your logstash should be of the form (you can add your extra filtering in)

```auto
################################################
# 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]}"
      pipeline => "%{[@metadata][pipeline]}" 
      user => "elastic"
      password => "secret"
    }
  } else {
    elasticsearch {
      hosts => "http://localhost:9200"
      manage_template => false
      index => "%{[@metadata][beat]}-%{[@metadata][version]}"
      user => "elastic"
      password => "secret"
    }
  }
}

```

---

_[View the full topic](https://discuss.elastic.co/t/getting-metricbeat-error-on-7-14-v/282272)._
