# Logstash daily indexing?

**URL:** https://discuss.elastic.co/t/logstash-daily-indexing/190812
**Category:** Logstash
**Created:** [July 16, 2019, 6:15pm UTC](https://discuss.elastic.co/t/logstash-daily-indexing/190812 "2019-07-16T18:15:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![userR](https://avatars.discourse-cdn.com/v4/letter/u/22d042/32.png) [@userR](https://discuss.elastic.co/u/userR)
#### Post date: [July 16, 2019, 6:15pm UTC](https://discuss.elastic.co/t/logstash-daily-indexing/190812/1 "2019-07-16T18:15:09Z")

</div>

Hi,

I am planning on using Filebeat for log rotation on a server. From my understanding, Filebeat tails the inode so log rotation shouldn't be an issue when it comes to reading new log data. However, I have a question regarding how information is indexed. If I would like a new index everyday in elasticsearch, how would I configure that information in Logstash? Would I have to specify a date within the index name?

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [July 16, 2019, 6:17pm UTC](https://discuss.elastic.co/t/logstash-daily-indexing/190812/2 "2019-07-16T18:17:43Z")

</div>

The default value for the [index](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-index) option on an elasticsearch output is to create daily indexes.

---

<div class="post-metadata">

### Author: ![userR](https://avatars.discourse-cdn.com/v4/letter/u/22d042/32.png) [@userR](https://discuss.elastic.co/u/userR)
#### Post date: [July 16, 2019, 6:20pm UTC](https://discuss.elastic.co/t/logstash-daily-indexing/190812/3 "2019-07-16T18:20:17Z")

</div>

Okay, so if I do not specify an index in logstash, it will automatically be configured to a daily index name?

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [July 16, 2019, 6:28pm UTC](https://discuss.elastic.co/t/logstash-daily-indexing/190812/4 "2019-07-16T18:28:46Z")

</div>

Yes.

---

<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 13, 2019, 6:28pm UTC](https://discuss.elastic.co/t/logstash-daily-indexing/190812/5 "2019-08-13T18:28:49Z")

</div>

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