Ability to remove fields/groups of fields for the Kubernetes labels and annotations #1371
Replies: 9 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.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions! |
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.
-
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