# Indexing beats hourly

**URL:** <https://discuss.elastic.co/t/indexing-beats-hourly/284271>\
**Category:** Beats\
**Tags:** filebeat, packetbeat, winlogbeat, auditbeat\
**Created:** [September 15, 2021, 11:03am UTC](https://discuss.elastic.co/t/indexing-beats-hourly/284271 "2021-09-15T11:03:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarekilani](https://avatars.discourse-cdn.com/v4/letter/t/54ee81/32.png) [@tarekilani](https://discuss.elastic.co/u/tarekilani)\
**Post date:** [September 15, 2021, 11:03am UTC](https://discuss.elastic.co/t/indexing-beats-hourly/284271/1 "2021-09-15T11:03:57Z")

</div>

Hello,

Please i'm searching for a way to index beats hourly in elasticsearch. As you know the default configuration in a beat yml file is :

`#index: "winlogbeat-%{[agent.version]}-%{+yyyy.MM.dd}"`

I tried changing that line to this :

`#index: "winlogbeat-%{[agent.version]}-%{+yyyy.MM.dd.HH}"`

But it doesn't work.  
Is there any way to index beats hourly ? (Plesase consider that i'm not using logstash between beats and elsticsearch)  
Thank you in advance for your help.

---

<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 15, 2021, 9:24pm UTC](https://discuss.elastic.co/t/indexing-beats-hourly/284271/2 "2021-09-15T21:24:00Z")

</div>

Can I ask why you want to go this route? You risk creating a lot of shards, and wasting system resources due to that.

---

<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:** [October 13, 2021, 11:24pm UTC](https://discuss.elastic.co/t/indexing-beats-hourly/284271/3 "2021-10-13T23:24:36Z")

</div>

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