# Curator, create index, dynamic name

**URL:** <https://discuss.elastic.co/t/curator-create-index-dynamic-name/160217>\
**Category:** Elasticsearch\
**Created:** [December 10, 2018, 4:21pm UTC](https://discuss.elastic.co/t/curator-create-index-dynamic-name/160217 "2018-12-10T16:21:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hage42](https://avatars.discourse-cdn.com/v4/letter/h/c77e96/32.png) [@hage42](https://discuss.elastic.co/u/hage42)\
**Post date:** [December 10, 2018, 4:21pm UTC](https://discuss.elastic.co/t/curator-create-index-dynamic-name/160217/1 "2018-12-10T16:21:26Z")

</div>

Can the index-name, to be set inside of a "[create\_index](https://www.elastic.co/guide/en/elasticsearch/client/curator/current/ex_create_index.html)" - Action be created dynamically?  
Like

`name: staticText-<$date>`  
or  
`name: staticText-<$PrefixOfIndexXY>`

?

---

<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:** [December 10, 2018, 4:37pm UTC](https://discuss.elastic.co/t/curator-create-index-dynamic-name/160217/2 "2018-12-10T16:37:21Z")

</div>

You can make use of [environment variables](https://www.elastic.co/guide/en/elasticsearch/client/curator/5.6/envvars.html).

---

<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:** [January 7, 2019, 4:45pm UTC](https://discuss.elastic.co/t/curator-create-index-dynamic-name/160217/3 "2019-01-07T16:45:48Z")

</div>

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