Using result of one query in another query

We have logs in Loki and traces in Tempo. What I’d like to do is find logs that indicate a given failure mode and then based on contents of that log line look up some more relevant information which is only saved on a span in the log’s trace.

I guess what it boils down to is mixed-datasource subqueries.

Alternatively, I think I could also make it work with just LogQL subqueries. Is anything like that possible or planned?

1 Like

Yes, You can use Drilldown feature such as data-links. I would suggest to see this video tutorial.

I don’t think data links help me at all here. I have 100 of loglines and each of them can have a link to more information thanks to that feature.

What I want is not links to further information, what I want is the information so that I can see it in a single place.