# After deleted metric beat index not able to get data from metric beat agent

**URL:** https://discuss.elastic.co/t/after-deleted-metric-beat-index-not-able-to-get-data-from-metric-beat-agent/247571
**Category:** Beats
**Tags:** metricbeat
**Created:** [September 4, 2020, 3:45pm UTC](https://discuss.elastic.co/t/after-deleted-metric-beat-index-not-able-to-get-data-from-metric-beat-agent/247571 "2020-09-04T15:45:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pankaj0172](https://avatars.discourse-cdn.com/v4/letter/p/58f4c7/32.png) [@pankaj0172](https://discuss.elastic.co/u/pankaj0172)
#### Post date: [September 4, 2020, 3:45pm UTC](https://discuss.elastic.co/t/after-deleted-metric-beat-index-not-able-to-get-data-from-metric-beat-agent/247571/1 "2020-09-04T15:45:47Z")

</div>

Hi Team,

Can someone please help with the below error message as I deleted the metricbeat index from elastichsearch through Kibana and now I'm not able to get data from metricbeat agent..

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/3/5/353649240eae9ad66df48db0ebfd2f16e828f91e.png)

---

<div class="post-metadata">

### Author: ![rakesh15](https://avatars.discourse-cdn.com/v4/letter/r/49beb7/32.png) [@rakesh15](https://discuss.elastic.co/u/rakesh15)
#### Post date: [September 4, 2020, 4:55pm UTC](https://discuss.elastic.co/t/after-deleted-metric-beat-index-not-able-to-get-data-from-metric-beat-agent/247571/2 "2020-09-04T16:55:10Z")

</div>

Hi Pankaj,

There are 2 ways to solve this problem.

1. In metricbeat.yml file add the following line under "Setup ILM" section. And try the setup command again.  
`setup.ilm.overwrite: true`

2. Login to Kibana, and delete all the references for metricbeat, including index, life cycle policy, etc. and try to run the setup command again.

Thanks and Regards,  
Rakesh Chhabria

---

<div class="post-metadata">

### Author: ![pankaj0172](https://avatars.discourse-cdn.com/v4/letter/p/58f4c7/32.png) [@pankaj0172](https://discuss.elastic.co/u/pankaj0172)
#### Post date: [September 9, 2020, 8:45am UTC](https://discuss.elastic.co/t/after-deleted-metric-beat-index-not-able-to-get-data-from-metric-beat-agent/247571/3 "2020-09-09T08:45:59Z")

</div>

Thanks, Rakesh. It resolved this issue

---

<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: [October 7, 2020, 8:46am UTC](https://discuss.elastic.co/t/after-deleted-metric-beat-index-not-able-to-get-data-from-metric-beat-agent/247571/4 "2020-10-07T08:46:07Z")

</div>

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