# Curator to add alias for today's index

**URL:** <https://discuss.elastic.co/t/curator-to-add-alias-for-todays-index/124165>\
**Category:** Elasticsearch\
**Created:** [March 15, 2018, 7:19pm UTC](https://discuss.elastic.co/t/curator-to-add-alias-for-todays-index/124165 "2018-03-15T19:19:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jclose](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@jclose](https://discuss.elastic.co/u/jclose)\
**Post date:** [March 15, 2018, 7:19pm UTC](https://discuss.elastic.co/t/curator-to-add-alias-for-todays-index/124165/1 "2018-03-15T19:19:52Z")

</div>

I am trying to get curator to create an index where it uses today's date within the alias name, all based upon a date.

So if I have an index called `iis_logs-2018.03.15` created today, I also want an alias created called `active_directory-2018.03.15`

But I cannot get the curator to do this properly. I can't seem to find an example for this exact use-case. Can someone tell me where my error is:

> actions:  
> 1:  
> action: alias  
> description: \>-  
> Alias AD index for today  
> options:  
> name: '\<active\_directory-{now/d}\>'  
> warn\_if\_no\_indices: False  
> disable\_action: False  
> add:  
> filters:  
> - filtertype: pattern  
> kind: prefix  
> value: iis-  
> - filtertype: pattern  
> kind: timestring  
> value: '%Y.%m.%d'

It would be even better if I could call the pattern with `<value: iis-{now/d}>`

Anyone know what I'm doing wrong?

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [March 18, 2018, 5:04pm UTC](https://discuss.elastic.co/t/curator-to-add-alias-for-todays-index/124165/2 "2018-03-18T17:04:26Z")

</div>

The feature you requested will be in Curator 5.5, which is slated for release this week. You can read the pre-release documentation for it [here](https://www.elastic.co/guide/en/elasticsearch/client/curator/5.x/option_name.html#_date_math_2).

---

<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:** [April 15, 2018, 5:04pm UTC](https://discuss.elastic.co/t/curator-to-add-alias-for-todays-index/124165/3 "2018-04-15T17:04:31Z")

</div>

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