# Trying to add an alias on Index Template using kibana Wizard

**URL:** <https://discuss.elastic.co/t/trying-to-add-an-alias-on-index-template-using-kibana-wizard/248037>\
**Category:** Elasticsearch\
**Created:** [September 9, 2020, 3:56pm UTC](https://discuss.elastic.co/t/trying-to-add-an-alias-on-index-template-using-kibana-wizard/248037 "2020-09-09T15:56:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![olg32](https://avatars.discourse-cdn.com/v4/letter/o/35a633/32.png) [@olg32](https://discuss.elastic.co/u/olg32)\
**Post date:** [September 9, 2020, 3:56pm UTC](https://discuss.elastic.co/t/trying-to-add-an-alias-on-index-template-using-kibana-wizard/248037/1 "2020-09-09T15:56:17Z")

</div>

Hi,

I just created an index template. Now, in order to to configure a lifecycle policy for rolling indices, I need to define an alias, so I'm using the Kibana Create template wizard to add it.

I went to the "Aliases" section and added it:

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/c/8/c8b6501c58995d28368cc4ed6f8f27853b10ee42.jpeg)

Verified that all is OK:

 ![Capture1](https://us1.discourse-cdn.com/elastic/original/3X/5/8/58d6f28b386809d560e89ea12dc38ee0d26e83a2.jpeg)

Saved template, however, the following error was displayed:

 ![Capture2](https://us1.discourse-cdn.com/elastic/original/3X/0/2/029f14f3b93260e5b07f65019367ee88c606b5cf.jpeg)

Could it be a bug? or what I may be missing?

Originally I tried to do it manually (PUT /) but didn't work neither.

Thank you.

---

<div class="post-metadata">

**Author:** ![olg32](https://avatars.discourse-cdn.com/v4/letter/o/35a633/32.png) [@olg32](https://discuss.elastic.co/u/olg32)\
**Post date:** [September 9, 2020, 7:32pm UTC](https://discuss.elastic.co/t/trying-to-add-an-alias-on-index-template-using-kibana-wizard/248037/2 "2020-09-09T19:32:22Z")

</div>

OK, I found the problem. Bad syntax.

```auto
 {
   "Alias": {}
  }

```

Thanks.

---

<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, 7:32pm UTC](https://discuss.elastic.co/t/trying-to-add-an-alias-on-index-template-using-kibana-wizard/248037/3 "2020-10-07T19:32:34Z")

</div>

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