# Creation of Indexes in Elasticsearch Manually vs through Logstash

**URL:** <https://discuss.elastic.co/t/creation-of-indexes-in-elasticsearch-manually-vs-through-logstash/33893>\
**Category:** Elasticsearch\
**Created:** [November 5, 2015, 4:38pm UTC](https://discuss.elastic.co/t/creation-of-indexes-in-elasticsearch-manually-vs-through-logstash/33893 "2015-11-05T16:38:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahulnadella](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahulnadella/32/22117_2.png) [@rahulnadella](https://discuss.elastic.co/u/rahulnadella)\
**Post date:** [November 5, 2015, 4:38pm UTC](https://discuss.elastic.co/t/creation-of-indexes-in-elasticsearch-manually-vs-through-logstash/33893/1 "2015-11-05T16:38:25Z")

</div>

On our project, we create each index (to comply to specific template) based time through Logstash. Our front end API currently uses the d3/dc/crossfilter stack in which it displays data on specific days using a 'dc' stacked bar chart. The issue we have run into is that during some of the days no data is passed into Logstash-Forwarder causing the index to not be created for the specific type by Logstash in which the UI will incorrectly display data on graph. I looking for possible workarounds to solve this on the backend (having an index for each day) vs frontend (due to limitation of library).

QUESTION 1:  
I was wonder if there are any pitfalls to manually create these indexes through a cron job instead of letting Logstash populate them in ElasticSearch?

QUESTION 2:  
Is there any possible way for Logstash to always create an index with the specified time format (even if no data is going to exist)?

---

<div class="post-metadata">

**Author:** ![rahulnadella](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahulnadella/32/22117_2.png) [@rahulnadella](https://discuss.elastic.co/u/rahulnadella)\
**Post date:** [November 16, 2015, 8:50pm UTC](https://discuss.elastic.co/t/creation-of-indexes-in-elasticsearch-manually-vs-through-logstash/33893/2 "2015-11-16T20:50:22Z")

</div>

This was fixed by a workaround provided by the developer working on the d3 library.

---

<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 5, 2017, 11:38pm UTC](https://discuss.elastic.co/t/creation-of-indexes-in-elasticsearch-manually-vs-through-logstash/33893/3 "2017-07-05T23:38:10Z")

</div>


