Skip to content

Fluentd logging agents should attach kubernetes labels to the logs they collect #4255

Closed
@a-robinson

Description

@a-robinson

All of the labels attached to the container whose logs are being collected should be added on to the logs. For example, if logs are being collected for container foo with the labels env=prod and service=backend, those labels (env=prod, service=backend) should be attached such that someone querying logs later can ask for all logs with those labels to easily aggregate across containers.

IIRC both elasticsearch and Google Cloud Logging support arbitrary labels, so the only work needed should be getting the container's labels into Fluentd and attaching them.

cc @satnam6502

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions