Blocking queries without multi-tenant enabled

Hi everyone!

Does someone know if it’s possible to enable blocking queries without having multi-tenancy enabled?

Thanks

Based on what criteria are you looking to block queries?

Based on regex like here. I want to block queries that only have one label for example {app="job"}.

Don’t think that’s possible. You can of course put an nginx proxy in front and filter by URL, but in my opinion that’s just asking for trouble.

If you need some logs to be kept from certain group of people then you should consider enabling auth_mode in Loki and put an authentication mechanism in front.