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
Activating Cluster level logging sends lots of backslashes on fluentd target #24545
Comments
Validated Rancher version: |
This seems to happen more often with the |
It doesn't seem to be the same scenario. The result is the same for sure but not enabling the enableJSONParsing in |
Root CauseCluster logging will collect logs from many components. But not all of the logs are in JSON format. So fluentd will throw a warning level log when we do the parse if it is not a JSON format log. This is expected. However, rancher fluentd is picking up and processing its own logs, which is causing a feedback loop - every time it reads a log with JSON escaped strings, it has to escape it again before printing, which leads to lots of backslashes to escape other backslashes. SolutionUse
OtherMaybe we should disable it by hiding the |
@izaac Just FYI If you deploy the target
|
@izaac, I think we should hold this open until we can add the multiformat plugin and log the fluentd pods to a file. The file should be rotated either by date and/or size so that it doesn't overrun the underlying filesystem. |
Un-merged PRs for fixing this issue |
2. Fixed fluentd non-json parsing bug by multi_format plugin rancher#24545
2. Fixed fluentd non-json parsing bug by multi_format plugin rancher#24545
2. Fixed fluentd non-json parsing bug by multi_format plugin #24545
2. Fixed fluentd non-json parsing bug by multi_format plugin #24545
These issues were validated working after these fixes:
I'm still going to do a couple of tests on windows nodes as that was also updated as part of these set of changes. |
Rancher version:
I activate the fluentd logging and it seems normal, it's no longer showing the backslashes in the logs but the
|
logging only works in host gw mode. It’s a known issue. I guess you are using vxlan |
@loganhz oh yes, I was using vxlan |
Activating Cluster level logging sends lots of backslashes making impossible to read the logs.
What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):
Spin up a new cluster using rancher 2.3-head. I used
[INFO] Rancher version
59110e9Activate cluster logging using fluentd as target. I've used
fluentd:v1.7.4-debian-2.0
fluent.conf
:Result:
Many backslashes send in the logged events to fluentd.
Other details that may be helpful:
Environment information
Cluster information
kubectl version
):docker version
):The text was updated successfully, but these errors were encountered: