# Stop Filebeat Log Rotation

**URL:** <https://discuss.elastic.co/t/stop-filebeat-log-rotation/355461>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 15, 2024, 9:40am UTC](https://discuss.elastic.co/t/stop-filebeat-log-rotation/355461 "2024-03-15T09:40:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Debasis\_Mallick](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/debasis_mallick/32/123723_2.png) [@Debasis\_Mallick](https://discuss.elastic.co/u/Debasis_Mallick)\
**Post date:** [March 15, 2024, 9:40am UTC](https://discuss.elastic.co/t/stop-filebeat-log-rotation/355461/1 "2024-03-15T09:40:44Z")

</div>

Hi Team,

Is there any way we can stop filebeat log rotation. I had changed the parameter rotateeverybytes to 1GB but still log folder I can see it is creating 1 KB file and getting difficulties to trace the error during ingestion.

Could someone advise how to stop log rotation and moreover why it is generation 1KB file even if I mentioned 1GB.

> logging:  
> level: debug  
> to\_files: true  
> files:  
> path: /var/log/filebeat/  
> name: filebeat1  
> rotateeverybytes: 1073741824  
> keepfiles: 4

Thanks,  
Debasis

---

<div class="post-metadata">

**Author:** ![Debasis\_Mallick](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/debasis_mallick/32/123723_2.png) [@Debasis\_Mallick](https://discuss.elastic.co/u/Debasis_Mallick)\
**Post date:** [March 18, 2024, 4:35am UTC](https://discuss.elastic.co/t/stop-filebeat-log-rotation/355461/2 "2024-03-18T04:35:14Z")

</div>

HI Team,

Any help on the above request.

Thanks,  
Debasis

---

<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:** [April 15, 2024, 6:35am UTC](https://discuss.elastic.co/t/stop-filebeat-log-rotation/355461/3 "2024-04-15T06:35:59Z")

</div>

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