Skip to content
Discussion options

You must be logged in to vote

Finally, found by my self :)

With configure_kubernetes_labels: true, you need to drop keys (orignal kubernetes labels) before extraction and transformation to loki labels in the output configuration.
Kubernetes labels are an associative array in kuberenetes key of record, to drop one or more is like :

remove_keys: $.kubernetes.labels.label2
#or
remove_keys: "$['kubernetes']['labels']['label2']"

For spectial chars, one way :

remove_keys: "$['kubernetes']['labels']['app.kubernetes.io/managed-by']"

In the end, my flow will be:

apiVersion: logging.banzaicloud.io/v1beta1
kind: Flow
metadata:
  name: stream-line-log-flow
spec:
  filters:
  - tag_normaliser: {}
  - record_modifier:
      records:…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pepov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
1 participant
Converted from issue

This discussion was converted from issue #2125 on November 24, 2025 08:14.