I’m currently trying to index the trace_id from my traces in loki logs. In use is the Grafana agent for logging and tracing in a Kubernetes cluster. I find out that I have to adjust the pipelineStages in the Podslogs (podlogs.yaml) but I’m not familiar with this configuration and don’t know how to configure it right.
There are anyone who is familiar and can give me some advices?
you probably do not want to index trace_id. Dynamic labels are bad for Loki performance as is and with trace_id being a unique value per log message will blow up the Loki index (I would assume).
I have spent some time getting the trace_id lookup from logs work to link directly to Tempo traces.
In your Loki data source settings you need to create some Derived fields.