# Creating indices based on timestamp using date index name processor

**URL:** https://discuss.elastic.co/t/creating-indices-based-on-timestamp-using-date-index-name-processor/229839
**Category:** Beats
**Tags:** filebeat
**Created:** [April 26, 2020, 12:14pm UTC](https://discuss.elastic.co/t/creating-indices-based-on-timestamp-using-date-index-name-processor/229839 "2020-04-26T12:14:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Daud\_Ahmed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daud_ahmed/32/65655_2.png) [@Daud\_Ahmed](https://discuss.elastic.co/u/Daud_Ahmed)
#### Post date: [April 26, 2020, 12:14pm UTC](https://discuss.elastic.co/t/creating-indices-based-on-timestamp-using-date-index-name-processor/229839/1 "2020-04-26T12:14:43Z")

</div>

This processor is used to create indices

```auto
  {
      "date_index_name": {
        "field": "timestamp",
        "date_rounding": "d",
        "index_name_prefix": "{{fields.index_prefix}}",
        "index_name_format": "yyyy.MM.dd",
        "ignore_failure": false
      }
    },

```

this create index daily and sets the name rightly using index\_name\_format ...... what i want to know how can i modify this to create the index monthly....

for testing purpose what i did is i changed the

```auto
index_name_format: "yyyy.MM.dd.mm"

```

it created an index with right format as i was expecting. But i was expecting a new index will be created every minute but it doesn't....

---

<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: [May 24, 2020, 12:14pm UTC](https://discuss.elastic.co/t/creating-indices-based-on-timestamp-using-date-index-name-processor/229839/2 "2020-05-24T12:14:48Z")

</div>

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