Hello everybody , i'm discovering fluentbit and pl...
# fluent-bit
n
Hello everybody , i'm discovering fluentbit and playing with it a little bit , but i have a issue : So i collect my logs and send them to loki with the officiel loki fluentbit configuration (docs i used : https://docs.fluentbit.io/manual/pipeline/outputs/loki ) So everything works fine my logs are collected and sent to loki but i have a issue is when i add a label , this label is not visible in my logs ( i use grafana ) i did follow the documentation steps and did this configuration :
outputs: |
[OUTPUT]
Name        loki
Match       kube.*
host        lokiurl
port        3100
uri         /loki/api/v1/push
labels collector="fluentbit"
auto_kubernetes_labels  true
So logically in my logs i should have a new label called collector with the value fluentbit right ?
p
Labels are on the stream so used by Grafana to select the logs
It's always worked fine for me so not sure what the issue is you're seeing
Presumably you're restarting your fluent bit when you change the config?
Labels are not part of the actual log record if that's what you mean
n
yes i do restart fluentbit
but if i add the label as i said i should see it here no ?
image.png
p
yes
I would check the logs for fluent bit to see what it is saying
n
i did check the logs i didnt find the line that say that loki did add this label