-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log rotation on Windows #342
Comments
Should we add a default setting? |
It may be better to do so. |
I tested with the below configuration, it's not working, 1048 means 1kb right ?? After happens if that limit is reached, my file size is more than 2Mb and it's still growing.
I was confused where to the above settings so I have tried in 2 locations:
Below is my configuration.
|
To understand the situation (the reason why it's not working) correctly, could you show us the result of |
Hi @kenhys After doing a fluentd update it started working, I kept rotate size as 104800 and rotate age 10, so, after the size is reached 103kb, the logs are not seen, I failed to understand how the whole process works, I assumed a new file is created once the file size limit is reached and based on the rotate age only the required number of logs will be kept and rest will be deleted, could you please help me to understand. Below is the version detail. |
No, It's not working. As I noted before, fluentd 1.12.3 will not accept rotate settings. You can ensure by launch fluentd manually: (instead of launching as a service) rotate.conf
You can see a warning message.
One thing you need to do is: upgrade Fluentd. |
@kenhys this is old PR, but running td-agent 4.5.1 with fluentd 1.16.2 does not automatically rotate logs on my end
|
@tivanov-qb I see |
@daipom i was trying to get the rotation working and appearently this is what I had in the file when I took the screenshot. You can also ignore the comment for 50MB, as you can see it is set to Kbs, but does not work :( |
@tivanov-qb Could you try removing |
From fluent/fluentd#3538
Describe the bug
The log file (C:\opt\td-agent\td-agent.log) is increasing continuously, how to put a limit ??
There is some configuration like file rotate and there is a command however we have a fluentd running as windows service, so if there is any configuration could you please suggest either in conf file or while running the fluentd service from powershell.
To Reproduce
Keep fluentd service running and process different messages the file size keeps increasing.
Expected behavior
The old contents in the file should be deleted after a certain limit is reached.
Your Environment
Your Configuration
Your Error Log
No Errors it's physical size issue.
Additional context
No response
The text was updated successfully, but these errors were encountered: