How can i add a complex query into the dashboard variable query field for loki datasource?

Hello, how can i add a complex query into the dashboard variable query field? It was supported earlier but seems to be removed now.

{app="nginx"}| json | line_format "{{._entry}}" | pattern `<ip> - <user> <_> "<method> <path> <http_version>" <status> <bytes_send> <timespend1>: <timespend2> <_> <requestId> "-" "<_>" "<_>"`

my intention is to create an nginx dashboard, which has variables created from the above query. So that i can select the path or status or method which inspecting the dashboard.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.