# Alias not created based on index name - beats output

**URL:** https://discuss.elastic.co/t/alias-not-created-based-on-index-name-beats-output/210230
**Category:** Elasticsearch
**Created:** [December 2, 2019, 6:48pm UTC](https://discuss.elastic.co/t/alias-not-created-based-on-index-name-beats-output/210230 "2019-12-02T18:48:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sgreszcz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sgreszcz/32/46322_2.png) [@sgreszcz](https://discuss.elastic.co/u/sgreszcz)
#### Post date: [December 2, 2019, 6:48pm UTC](https://discuss.elastic.co/t/alias-not-created-based-on-index-name-beats-output/210230/1 "2019-12-02T18:48:09Z")

</div>

Hi there,

I'm trying to make a custom ILM and Index Template for my incoming filebeat and metricbeat shippers.

I've got it now so that the beats send to a custom index in ElasticSearch called "filebeat" and "metricbeat". I was hoping that the Aliases would have been created to point to the new index names and not "metricbeat-7.4.2" and "filebeat-7.4.2". Do you know how I can get this alias to link the new indices that I created with the index used for ILM?

```auto
"filebeat-7.4.2-2019.12.02-000001" : {
    "aliases" : {
      "filebeat-7.4.2" : {
        "is_write_index" : true
      }
    }
  },
  "metricbeat-7.4.2-2019.12.02-000001" : {
    "aliases" : {
      "metricbeat-7.4.2" : {
        "is_write_index" : true
      }
    }
  },

```

My beats config is:

```auto
output.elasticsearch:
  index: "filebeat"

setup.template.name: "filebeat"
setup.template.pattern: "filebeat-*"

```

---

<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 30, 2019, 6:48pm UTC](https://discuss.elastic.co/t/alias-not-created-based-on-index-name-beats-output/210230/2 "2019-12-30T18:48:13Z")

</div>

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