Open digital88 opened 1 year ago
https://github.com/kataring/fluent-plugin-string-scrub @digital88 will this actually solve this problem?
@kenhys there is a existing filter to capture invalid byte sequence as i mentioned in the thread, is it needed seperately to handle this issue internally?
https://github.com/kataring/fluent-plugin-string-scrub @digital88 will this actually solve this problem?
Could be the solution.
I actually somehow solved problems with corrupted log entries. I think I finally found "right" fluentd configuration options for my use case. Current config seems to work without causing any troubles.
i see I am not sure if its advised to handle the invalid byte seq case internally. let @kenhys reply
How about using the following options?
Is your feature request related to a problem? Please describe.
I recently found out that sometimes (very rarely) my app logs are getting corrupted. One line in app log may contain invalid UTF-8 byte sequence. In this case fluentd (I'm using td-agent) is flooding it's own log file with repeated error message:
This results in log file of fluentd growing to very large size (several 10s of GB) over weekend.
Describe the solution you'd like
Either write this error once and skip (drop) offending log line, or retry log line reading in controlled maner (for example with config option, once in N minutes) to prevent fluentd own log growing.
Describe alternatives you've considered
Alternative could be config option to limit fluentd log file size. Also this existing config options
ignore_repeated_log_interval
ignore_same_log_interval
help mitigate problem a little, but log size still continues to grow (with much lesser speed).Additional context
No response