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!
You can use a match-all regex together with a stream you have for all your logs.
For example if you collect a stream named host
for all your incoming logs you'd query for:
{host=~ ".*"}
You should note that at present a stream selector is always required for querying logs.