Skip to content
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

[Kubernetes] - Allow multiple parsers to be defined in the annotation #9620

Open
ABWassim opened this issue Nov 19, 2024 · 0 comments
Open

Comments

@ABWassim
Copy link

Is your feature request related to a problem? Please describe.
In the context of the Kubernetes Filter, I'd like to be able to suggest multiple parsers through the annotation. The idea is that logs could be formatted in different ways according to the context, and making one parser to handle the different cases can be hard.

Describe the solution you'd like
Each parser could be seperated by a comma like so :

fluentbit.io/parser_stderr: "parser-one,parser-two,..."
fluentbit.io/parser_stdout: "parser-three,parser-four,..."

Then we would iterate on the parsers, and use the first one that has a match.

Describe alternatives you've considered
I tried using the Parser Filter, but then we lose the Kubernetes Metadata.

Additional context
This feature was already suggested through #5526 and #8173. I am willing to work on the MR :)

@ABWassim ABWassim changed the title [Kubernetes] - Allow multiple parsers to be defined for the annotation [Kubernetes] - Allow multiple parsers to be defined in the annotation Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant