Ability to remove fields/groups of fields for the Kubernetes labels and annotations #1371
Replies: 8 comments
-
Bump on this, did you find a solution @silverm0on ? |
Beta Was this translation helpful? Give feedback.
-
@liquidsaul Nope just disable all kubernetes labels in logging resource
|
Beta Was this translation helpful? Give feedback.
-
I'm also interested on this. I've tested using I want to remove unneeded Kubernetes |
Beta Was this translation helpful? Give feedback.
-
you can do something like this in the output and pick only the labels you want: configure_kubernetes_labels: false
labels:
namespace: "$.kubernetes.namespace_name"
pod: "$.kubernetes.pod_name"
container: "$.kubernetes.container_name"
host: "$.kubernetes.host" |
Beta Was this translation helpful? Give feedback.
-
Thanks @SSvilen ! Does this also support Pods that may not include those labels? (thinking of different applications). |
Beta Was this translation helpful? Give feedback.
-
Those labels come from fluentbit and they are always present. $.kubernetes.labels.%label_name% the documentation for the loki fluentd output can be found here |
Beta Was this translation helpful? Give feedback.
-
I haven't yet tried, but anyone has an idea, why this cannot be achieved with record_modifier or record_transformer? |
Beta Was this translation helpful? Give feedback.
-
Converted this to a discussion until we have a better understanding what is happening here |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like the ability to remove some annotations and labels in the kubernetes fields.
I use record_modifier but it's not working for kubernetes fields
Beta Was this translation helpful? Give feedback.
All reactions