Filebeat-7.10.2 logging configurations logging files rotateeverybytes not working
- Dominant language
- Go
- Stars
- 12.7k
- Forks
- 5k
- Avg merge
- 2d 15m
- Merged PRs (30d)
- 385
Description
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:
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.
Contributor guide
Research direction
The report provides the logging configuration from filebeat.yml; start by reproducing the behavior with rotateeverybytes set to 1048576 and rotateonstartup set to false. Confirm whether Filebeat rotates the log at the configured size without creating a new file on startup, and compare the observed file sizes with the expected behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- observability-sre
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100