# Creating Indexes by using logstash

**URL:** <https://discuss.elastic.co/t/creating-indexes-by-using-logstash/93338>\
**Category:** Elasticsearch\
**Created:** [July 17, 2017, 6:27am UTC](https://discuss.elastic.co/t/creating-indexes-by-using-logstash/93338 "2017-07-17T06:27:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dinusha](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@dinusha](https://discuss.elastic.co/u/dinusha)\
**Post date:** [July 17, 2017, 6:27am UTC](https://discuss.elastic.co/t/creating-indexes-by-using-logstash/93338/1 "2017-07-17T06:27:30Z")

</div>

Hi... I am working with last 6 months of data. I am going to push my data into elasticsearch by using logstash. The 6 months of data divide into sub folders by referring date. As example data related in 2017-07-17 will containing folder call 20170717. I want to know best procedure to generate indexes for this large number of data set. Thank you

---

<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:** [July 17, 2017, 6:35am UTC](https://discuss.elastic.co/t/creating-indexes-by-using-logstash/93338/2 "2017-07-17T06:35:01Z")

</div>

Logstash will do this by default, see [https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-index](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-index)

---

<div class="post-metadata">

**Author:** ![dinusha](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@dinusha](https://discuss.elastic.co/u/dinusha)\
**Post date:** [July 17, 2017, 7:17am UTC](https://discuss.elastic.co/t/creating-indexes-by-using-logstash/93338/3 "2017-07-17T07:17:08Z")

</div>

Hi.. I want to generate data that include in filename. As example logstash-{filename}. Any suggestions for that purpose

---

<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:** [August 14, 2017, 7:17am UTC](https://discuss.elastic.co/t/creating-indexes-by-using-logstash/93338/4 "2017-08-14T07:17:50Z")

</div>

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