[LogQL] How to query logs based on the output of another one?

Hi All,

I would like to query the log files based on the output of last one from another logql:

First output:

I would like to run another logql based on the retrieved REQEUSTID “c954754b”, is there any way to save it in a variable?

Thanks.

@tonyswumac

I don’t believe this is possible.

Thanks Tony for the reply, we have found an alternative way for this.

What was your alternative solution? I have run into this in the past.

I haven’t tried this, but looks promising: Extract Loki fields into Grafana variables (workaround)