-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
FluentBit regex is matched, but I can't find my field, such as level etc. #8822
Comments
This is my yaml file: fluent-bit.conf: |
input-kubernetes.conf: |
|
my Log look like this : |
My regex is matcheded in this website: https://rubular.com/ |
Are you sure that's the actual log content on disk? It does not match the K8S standard so my suspicion is you're talking about the application log output, this is then wrapped and handled by the kubelet into another format and this format is what you need to parse. Get the actual log file off the disk, don't assume anything else. You cannot use your parser directly in the tail input, you should be using the multiline cri,docker ones first then a separate filter parser to parse your application log after that. This comes up often enough I highlighted it here: https://calyptia.com/blog/kubernetes-metadata-enrichment-with-fluent-bit-with-troubleshooting-tips I would also debug via stdout to see what you actually have plus also things like taking an actual log file to test with locally first: https://calyptia.com/blog/fluent-bit-tips-tricks If your parser is matching then it will parse, if it is not then it won't so as it is not the parser must not be matching :) |
Bug Report
Describe the bug
To Reproduce
Expected behavior
Screenshots
Your Environment
Additional context
The text was updated successfully, but these errors were encountered: