# Exiting: resource 'metricbeat-7.4.2' exists, but it is not an alias

**URL:** https://discuss.elastic.co/t/exiting-resource-metricbeat-7-4-2-exists-but-it-is-not-an-alias/206685
**Category:** Beats
**Tags:** metricbeat
**Created:** [November 5, 2019, 10:48pm UTC](https://discuss.elastic.co/t/exiting-resource-metricbeat-7-4-2-exists-but-it-is-not-an-alias/206685 "2019-11-05T22:48:23Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![kenbergquist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kenbergquist/32/37899_2.png) [@kenbergquist](https://discuss.elastic.co/u/kenbergquist)
#### Post date: [November 5, 2019, 10:48pm UTC](https://discuss.elastic.co/t/exiting-resource-metricbeat-7-4-2-exists-but-it-is-not-an-alias/206685/1 "2019-11-05T22:48:23Z")

</div>

After upgrading from 6.8.2 to 7.4.2, when executing metricbeat setup, I receive the error

> Exiting: resource 'metricbeat-7.4.2' exists, but it is not an alias

Visualizations and dashboards are of course largely broken. Any assistance you can offer would be most appreciated.

Thanks in advance.

---

<div class="post-metadata">

### Author: ![dnorth98](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dnorth98/32/54823_2.png) [@dnorth98](https://discuss.elastic.co/u/dnorth98)
#### Post date: [November 6, 2019, 1:52pm UTC](https://discuss.elastic.co/t/exiting-resource-metricbeat-7-4-2-exists-but-it-is-not-an-alias/206685/2 "2019-11-06T13:52:32Z")

</div>

I'm having almost exactly the same issue. I can see how this happened but I can't see a way out of it.

In my case, it's because the original metricbeat indexed index (!!) had been removed due to space issues. So the various (several hundred) metricbeat agents come in and try and write to the alias. But there is no alias so the index is created with the name of the alias. This causes ILM to break.

I've tried to delete the index but of course it just comes back again because one of the several hundred agents just re-creates it.

Is there some way to "pause" ingestion on the server side? If so, I can then manually re-create the correct index name and alias and everything should be good. Stopping all of the clients is pretty well impossible across several hundred agents so really looking for something on the server side.

Cheers

Dave

---

<div class="post-metadata">

### Author: ![dnorth98](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dnorth98/32/54823_2.png) [@dnorth98](https://discuss.elastic.co/u/dnorth98)
#### Post date: [November 6, 2019, 3:24pm UTC](https://discuss.elastic.co/t/exiting-resource-metricbeat-7-4-2-exists-but-it-is-not-an-alias/206685/3 "2019-11-06T15:24:56Z")

</div>

I managed to find a way around this in case anyone else is interested. Here's what I had to do:

- Stop new index auto-creation

- Deleted the `metricbeat-7.4.0` index (I can afford to lose this data)

- Created a new `metricbeat-7.4.0-2019-11-06` index and assign it the alias

`PUT /metricbeat-7.4.0-2019-11-06`

```auto
{
    "actions" : [
        { "add" : { "index" : "metricbeat-7.4.0-2019.11.06-000001", "alias" : "metricbeat-7.4.0", "is_write_index" : "true" }
           }
    ]
}

```

- Re-enable auto-index creation (remove from user config)

The index I created quickly rolled over but I'm all good now. None of the metricbeat clients had to be touched to get back to a working state. Hoorah!

Cheers

Dave

---

<div class="post-metadata">

### Author: ![kenbergquist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kenbergquist/32/37899_2.png) [@kenbergquist](https://discuss.elastic.co/u/kenbergquist)
#### Post date: [November 11, 2019, 4:11pm UTC](https://discuss.elastic.co/t/exiting-resource-metricbeat-7-4-2-exists-but-it-is-not-an-alias/206685/4 "2019-11-11T16:11:20Z")

</div>

@dnorth98 , thanks for the tip - that got me moving in the right direction. If switching off action.auto\_create\_index in the metricbeat.yml instead of the user override, you must comment it out rather than setting to false, as this is too restrictive according to the error I received when I first set it false. I then deleted the metricbeat-n.n.n index, and the correct dated index with non-dated alias was created on the next agent connection after restart.

Cheers,  
Ken

---

<div class="post-metadata">

### Author: ![amitavmohanty01](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amitavmohanty01/32/58017_2.png) [@amitavmohanty01](https://discuss.elastic.co/u/amitavmohanty01)
#### Post date: [November 21, 2019, 10:33am UTC](https://discuss.elastic.co/t/exiting-resource-metricbeat-7-4-2-exists-but-it-is-not-an-alias/206685/5 "2019-11-21T10:33:45Z")

</div>

@dnorth98 is there any bug raised for this on Github ?

---

<div class="post-metadata">

### Author: ![dnorth98](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dnorth98/32/54823_2.png) [@dnorth98](https://discuss.elastic.co/u/dnorth98)
#### Post date: [November 21, 2019, 1:08pm UTC](https://discuss.elastic.co/t/exiting-resource-metricbeat-7-4-2-exists-but-it-is-not-an-alias/206685/6 "2019-11-21T13:08:52Z")

</div>

I'm not sure. Since I solved this myself, I've not upgraded again yet

---

<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: [December 19, 2019, 1:08pm UTC](https://discuss.elastic.co/t/exiting-resource-metricbeat-7-4-2-exists-but-it-is-not-an-alias/206685/7 "2019-12-19T13:08:54Z")

</div>

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