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

Support for modifying kubernetes labels #9761

Open
kborovoy-ebsco opened this issue Dec 23, 2024 · 1 comment
Open

Support for modifying kubernetes labels #9761

kborovoy-ebsco opened this issue Dec 23, 2024 · 1 comment

Comments

@kborovoy-ebsco
Copy link

Bug Report

Describe the bug
Hi,
Maybe I'm missing something, I want to add a new record foo.bar based on existing labels.app using FILTER:modify.
But it doesn't work.

To Reproduce
Was trying the following variants:

    [FILTER]
        Name        modify
        Match       *
        Add         foo.bar $kubernetes['labels']['app']

OR

    [FILTER]
        Name        record_modifier
        Match       *
        Record      foo.bar $kubernetes['labels']['app']

OR

    [FILTER]
        Name        modify
        Match       *
        Condition   Key_exists kubernetes['labels']['app']
        Copy        kubernetes['labels']['app'] foo.bar

Additional context
Also, I tried an LUA script and it works. But my goal is to use a FILTER:modify or maybe record_modifier if it's possible.

@kborovoy-ebsco
Copy link
Author

kborovoy-ebsco commented Dec 23, 2024

also I tried, still doesn't work

    [FILTER]
        Name           nest
        Match          *kube
        Operation      lift
        Nested_under   kubernetes
        
     [FILTER]
        Name modify
        Match          kube.*
        Copy           labels.app foo.bar

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

No branches or pull requests

1 participant