Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Loki query to show all logs

Tags:

grafana-loki

I'm trying to test our Loki log data source. From the Queries I've been executing nothing is returned.

It's possible that the logs are in a different format to what I'm expecting, or that no Logs are ingested by Loki, and my pipeline is broken somewhere.

Is there a Loki query that returns all the logs?

I've looked through documentation, and so far, I haven't found any such Loki query. Any other queries to help debug would be appreciated!

like image 397
fuzzi Avatar asked Dec 15 '25 18:12

fuzzi


1 Answers

{host=~ ".*"} doesn't work for me. Use {host=~ ".+"} That should work always.

like image 81
SmarD Avatar answered Dec 17 '25 06:12

SmarD



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!