-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 #6888
Comments
similar to #6183 |
Closing but let me know if this is an issue distinct from #6183 and we'll reopen. |
This is still the case with Telegraf 1.17.2 on OSX. The logfile is currently 3 MB, constantly being written to, and is five days old but only 1 file exists still. The time dimension is not being honored.
$ du -h telegraf.log $ GetFileInfo -d telegraf.log $ date $ ls -al |
Hi, This is more of a question than a bug. I think it's a bug but probably a question of perspective. Your input would be appreciated.
Relevant telegraf.conf:
logfile_rotation_interval = "1d"
logfile_rotation_max_size = "10MB"
Expected behavior:
Logfile would be rotated in the following situations:
:1 day has elapsed since the file has been modified
:logfile is over 10MB
Actual behavior:
-Logfile grows until 10MB
Cheers
Simon
The text was updated successfully, but these errors were encountered: