# Is it possible to create two index for the same day using logstash templete

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-create-two-index-for-the-same-day-using-logstash-templete/197022>\
**Category:** Logstash\
**Created:** [August 28, 2019, 2:56am UTC](https://discuss.elastic.co/t/is-it-possible-to-create-two-index-for-the-same-day-using-logstash-templete/197022 "2019-08-28T02:56:33Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [August 28, 2019, 6:14pm UTC](https://discuss.elastic.co/t/is-it-possible-to-create-two-index-for-the-same-day-using-logstash-templete/197022/8 "2019-08-28T18:14:49Z")

</div>

in output section  
output {  
elasticsearch {  
index =\> "resource-%{+YYYY.ww}"  
}  
}

or you can use xxxx.ww

Follow this discussion

[https://discuss.elastic.co/t/solved-weekly-indexes-instead-of-daily/56871](https://discuss.elastic.co/t/solved-weekly-indexes-instead-of-daily/56871)

---

_[View the full topic](https://discuss.elastic.co/t/is-it-possible-to-create-two-index-for-the-same-day-using-logstash-templete/197022)._
