# Create monthly indexes based on event attribute

**URL:** https://discuss.elastic.co/t/create-monthly-indexes-based-on-event-attribute/29372
**Category:** Logstash
**Created:** [September 16, 2015, 8:23am UTC](https://discuss.elastic.co/t/create-monthly-indexes-based-on-event-attribute/29372 "2015-09-16T08:23:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![karasmeitar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karasmeitar/32/35703_2.png) [@karasmeitar](https://discuss.elastic.co/u/karasmeitar)
#### Post date: [September 16, 2015, 8:23am UTC](https://discuss.elastic.co/t/create-monthly-indexes-based-on-event-attribute/29372/1 "2015-09-16T08:23:40Z")

</div>

Hi All,  
can i perform JODA functions in the output section on other attributes then timestamp(%{+YYYY.MM})?  
i need to create indexes base on couple of attributes in my event and i can't use only the timestamp.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [September 16, 2015, 8:31am UTC](https://discuss.elastic.co/t/create-monthly-indexes-based-on-event-attribute/29372/2 "2015-09-16T08:31:07Z")

</div>

What do you want to use?

---

<div class="post-metadata">

### Author: ![karasmeitar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karasmeitar/32/35703_2.png) [@karasmeitar](https://discuss.elastic.co/u/karasmeitar)
#### Post date: [September 16, 2015, 9:31am UTC](https://discuss.elastic.co/t/create-monthly-indexes-based-on-event-attribute/29372/3 "2015-09-16T09:31:43Z")

</div>

i have 2 dates attributes in the event:  
date {  
match =\> ["install\_date", "UNIX\_MS"]  
target=\> "install\_date\_index\_time"  
}  
date{  
match =\> ["calendar\_date","UNIX\_MS"]  
target =\> "calendar\_date\_index\_time"

I want to insert the event to index name calendar\_date\_index\_time{YYYY.MM} and install\_date\_index\_time.YYYY.MM

---

<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: [July 6, 2017, 5:29am UTC](https://discuss.elastic.co/t/create-monthly-indexes-based-on-event-attribute/29372/4 "2017-07-06T05:29:01Z")

</div>


