-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add processor to tag fluent-bit logs with metadata using k8sprocessor #1094
Comments
This is going to be possible very soon with I.e. for following config:
We can extract attributes like following:
|
perfecto, still the question is how to get metadata using k8sprocessor without pod ip |
I am leaning towards using |
…1094) * Bump google.golang.org/grpc from 1.31.0 to 1.31.1 in /exporters/otlp Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.31.0 to 1.31.1. - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](grpc/grpc-go@v1.31.0...v1.31.1) Signed-off-by: dependabot[bot] <support@github.com> * Auto-fix go.sum changes in dependent modules Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
This issue has been inactive for 60 days. It will be closed in 120 days if there is no activity. |
Is your feature request related to a problem? Please describe.
Pod logs on the k8s node are named using four attributes:
pod_name
namespace
container_name
docker_id
The name of the log is passed as part of the
fluent.tag
by the fluentforwarderreceiver.Unfortunately there is no
pod ip
which is used by the k8sprocessor to tag logs with metadataIn order to use fluentbit and k8sprocessor in kubernetes environment the fluentd tag should be converted to the ip somehow.
Describe the solution you'd like
My idea consists of two parts:
I want to split the
fluent.tag
on several attributes like pod_name, namespace etc, like fluentd kubernetes plugin does do it:I want put that functionality into separate processor named
fluentbitk8sprocessor
.After attributes are extracted, the pair
namespace
,pod_name
should be used either:I would love to provide PR with the solution, but want to clarify proper path of extracting metadata by the k8sprocessor (adding extraction by pod name and namespace or took the ip by the proposed processor) first
Describe alternatives you've considered
Moving extraction of fields to fluentdforwarder receiver but I'm not a fan of this solution
Additional context
N/A
The text was updated successfully, but these errors were encountered: