Need help with simple query

I want to to a query of the logs to pull out all of the “http.url” labels associated with approximately 10 customer ids. I want the output to be filtered so I just have these lines so I can export them to a csv file for further processing. This would be easy to do with a sql interface but is apparently not straightforward with LOKI.

To get export out of Loki you can perform API calls with queries. There is also a client LogCLI you can try.

Another option, if you are using Grafana you can configure a table with Loki query and export the table. This of course limits your results to the limit on number of records that can be returned.