# How can I name Curator rollover new Index like date prefix-YYYY.MM.DD-1?

**URL:** <https://discuss.elastic.co/t/how-can-i-name-curator-rollover-new-index-like-date-prefix-yyyy-mm-dd-1/128542>\
**Category:** Elasticsearch\
**Created:** [April 18, 2018, 1:20pm UTC](https://discuss.elastic.co/t/how-can-i-name-curator-rollover-new-index-like-date-prefix-yyyy-mm-dd-1/128542 "2018-04-18T13:20:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [April 18, 2018, 2:13pm UTC](https://discuss.elastic.co/t/how-can-i-name-curator-rollover-new-index-like-date-prefix-yyyy-mm-dd-1/128542/2 "2018-04-18T14:13:32Z")

</div>

I took the liberty of editing your post to make it legible. Please use the code tags or triple back-ticks to encapsulate preformatted text in the future.

First, you can create the index and the alias in one shot:

```auto
PUT /logservices-2018.04.17-1
{
  "aliases": {
    "logservices": {}
  }
}

```

Second, there is an [undocumented feature](https://github.com/elastic/curator/issues/1197) for the rollover action that lets you name a new index:

```auto
  options:
    ...
    new_index: '<logservices-{now/d}-1}>'

```

If you need something other than the current year-month-day, look at the [date math docs](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/common-options.html#date-math) and follow the conventions there.

---

_[View the full topic](https://discuss.elastic.co/t/how-can-i-name-curator-rollover-new-index-like-date-prefix-yyyy-mm-dd-1/128542)._
