# Connection marked as failed because the onConnect callback failed: resource 'filebeat-7.5.1' exists, but it is not an alias"

**URL:** https://discuss.elastic.co/t/connection-marked-as-failed-because-the-onconnect-callback-failed-resource-filebeat-7-5-1-exists-but-it-is-not-an-alias/214253
**Category:** Beats
**Tags:** filebeat
**Created:** [January 8, 2020, 2:38pm UTC](https://discuss.elastic.co/t/connection-marked-as-failed-because-the-onconnect-callback-failed-resource-filebeat-7-5-1-exists-but-it-is-not-an-alias/214253 "2020-01-08T14:38:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Flaviu](https://avatars.discourse-cdn.com/v4/letter/f/94ad74/32.png) [@Flaviu](https://discuss.elastic.co/u/Flaviu)
#### Post date: [January 8, 2020, 2:38pm UTC](https://discuss.elastic.co/t/connection-marked-as-failed-because-the-onconnect-callback-failed-resource-filebeat-7-5-1-exists-but-it-is-not-an-alias/214253/1 "2020-01-08T14:38:26Z")

</div>

Hello,

I have just installed a new server with filebeat 7.5.1 and for some reason, after I restart the filebeat or the server I get this error:

```
Connection marked as failed because the onConnect callback failed: 
resource 'filebeat-7.5.1' exists, but it is not an alias"

```

if I go in kibana and delete the "filebeat-7.5.1" index I start to see logs coming in in the kibana/elasticsearch server, and the above error disappears from the filebeat error logs.

If I restart the filebeat process or the server altogether the above error starts to appear again and the logs are not pus anymore in kibana/elasticsearch. Te repair this I just need to go back to kibana and delete the index.

I have some more servers with a different version of filebeat and I don't have this issue.

Am I doing something wrong?

Thank you,

---

<div class="post-metadata">

### Author: ![faec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/faec/32/46988_2.png) [@faec](https://discuss.elastic.co/u/faec)
#### Post date: [January 9, 2020, 8:33pm UTC](https://discuss.elastic.co/t/connection-marked-as-failed-because-the-onconnect-callback-failed-resource-filebeat-7-5-1-exists-but-it-is-not-an-alias/214253/2 "2020-01-09T20:33:07Z")

</div>

Could you share your filebeat configuration? You can preserve the formatting by putting triple backticks (```) on the lines before and after the config. It looks like your problems are related to ILM (see [here](https://www.elastic.co/guide/en/beats/filebeat/current/ilm.html)), but I'd need to see the configuration to say more. Are you possibly using more than one filebeat with the same elasticsearch server? If so, they might have conflicting index settings.

---

<div class="post-metadata">

### Author: ![TCBeeekley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tcbeeekley/32/60922_2.png) [@TCBeeekley](https://discuss.elastic.co/u/TCBeeekley)
#### Post date: [January 16, 2020, 5:26pm UTC](https://discuss.elastic.co/t/connection-marked-as-failed-because-the-onconnect-callback-failed-resource-filebeat-7-5-1-exists-but-it-is-not-an-alias/214253/3 "2020-01-16T17:26:06Z")

</div>

I'm having this same issue, running Filebeat to ship logs from k8s (AWS EKS) to Elastic Cloud.

---

<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: [February 13, 2020, 5:26pm UTC](https://discuss.elastic.co/t/connection-marked-as-failed-because-the-onconnect-callback-failed-resource-filebeat-7-5-1-exists-but-it-is-not-an-alias/214253/4 "2020-02-13T17:26:21Z")

</div>

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