# Why does Filebeat allow rotateeverybytes min as 1?

**URL:** https://discuss.elastic.co/t/why-does-filebeat-allow-rotateeverybytes-min-as-1/146268
**Category:** Beats
**Tags:** filebeat
**Created:** [August 28, 2018, 6:02am UTC](https://discuss.elastic.co/t/why-does-filebeat-allow-rotateeverybytes-min-as-1/146268 "2018-08-28T06:02:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![siddharthgoel88](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/siddharthgoel88/32/10616_2.png) [@siddharthgoel88](https://discuss.elastic.co/u/siddharthgoel88)
#### Post date: [August 28, 2018, 6:02am UTC](https://discuss.elastic.co/t/why-does-filebeat-allow-rotateeverybytes-min-as-1/146268/1 "2018-08-28T06:02:51Z")

</div>

I was playing around with Filebeat along with my colleague and noticed that filebeat configuration allows a minimum value of rotateeverybytes as 1 ([see code](https://github.com/elastic/beats/blob/94fe58a8380373ddf03341a0aa692f642f408b67/libbeat/logp/config.go#L45) ) . This looks to me like an invalid validation check and does not seem to add value, in my opinion.

Should it be updated with better minimum validation?

---

<div class="post-metadata">

### Author: ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)
#### Post date: [August 28, 2018, 2:10pm UTC](https://discuss.elastic.co/t/why-does-filebeat-allow-rotateeverybytes-min-as-1/146268/2 "2018-08-28T14:10:59Z")

</div>

Nice one 🙂

I assume with the value of 1 filebeat will rotate files with every log message. Which value would you set as min? I think a PR or github issue would be appreciated.

---

<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: [September 25, 2018, 2:11pm UTC](https://discuss.elastic.co/t/why-does-filebeat-allow-rotateeverybytes-min-as-1/146268/3 "2018-09-25T14:11:11Z")

</div>

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