# Filebeat 7.10.2 : logging Configurations logging.files.rotateeverybytes not working

**URL:** https://discuss.elastic.co/t/filebeat-7-10-2-logging-configurations-logging-files-rotateeverybytes-not-working/346611
**Category:** Beats
**Tags:** filebeat
**Created:** [November 7, 2023, 9:45am UTC](https://discuss.elastic.co/t/filebeat-7-10-2-logging-configurations-logging-files-rotateeverybytes-not-working/346611 "2023-11-07T09:45:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![epadmav](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/epadmav/32/127306_2.png) [@epadmav](https://discuss.elastic.co/u/epadmav)
#### Post date: [November 7, 2023, 9:45am UTC](https://discuss.elastic.co/t/filebeat-7-10-2-logging-configurations-logging-files-rotateeverybytes-not-working/346611/1 "2023-11-07T09:45:15Z")

</div>

Hello All,

I am trying to rotate the logs generated by filebeat process by setting maximum file size of 1MB by configuring logging.files.rotateeverybytes: 1048576 but logs files are getting generated more than 10 MB and rotation is not happening.  
Please find my filebeat logging configuration in my filebeat.yml as shown below:

```auto
logging:
  level: warning
  to_syslog: false
  to_files: true
  files:
    path: /var/log/filebeat
    name: filebeat.log
    keepfiles: 5
    rotateonstartup: false
    rotateeverybytes: 1048576

```

I have changed rotateonstartup as false hence i dont want filebeat process to create new log files for every startup. rotateeverybytes is not working as expected. Could you please help here.

---

<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: [December 5, 2023, 11:46am UTC](https://discuss.elastic.co/t/filebeat-7-10-2-logging-configurations-logging-files-rotateeverybytes-not-working/346611/2 "2023-12-05T11:46:07Z")

</div>

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