You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Normal queries respect multiple tenantIds in query. For example: logcli-windows-amd64.exe --addr="https://loki-gateway.xx.live" --username="loki" --password="xxx" query --org-id="live-k8s|global-k8s" --since=1h "{namespace=\"live-core\"}"
Query above returns logs as expected.
As soon as we want to tail the logs, this does not work: logcli-windows-amd64.exe --addr="https://loki-gateway.xxx.live" --username="loki" --password="xxx" query -t --org-id="live-k8s|global-k8s" --since=1h "{namespace=\"live-core\"}"
Execute query with several tenantIds separated with |
Expected behavior
I understand the problem. Difficult to execute tailing with several tenantIds since it is getting split to several queries to each tenant. With CLI we can explicitly set tenant we want to execute tailing against. In grafana there is no such option. I think grafana team should find solution how to choose tenant for tailing in UI. It is said Loki is multitenant log storage, but in practice there are restrictions comparing with single tenant mode.
Tailing is important feature for developers.
Environment:
k8s
loki distributed
loki 2.8.2
The text was updated successfully, but these errors were encountered:
Thanks for raising the issue. Tailing does not support multiple tenants. Our error message should be better here. Could you raid a sibling ticket in Grafana and Link this one?
Describe the bug
Normal queries respect multiple tenantIds in query. For example:
logcli-windows-amd64.exe --addr="https://loki-gateway.xx.live" --username="loki" --password="xxx" query --org-id="live-k8s|global-k8s" --since=1h "{namespace=\"live-core\"}"
Query above returns logs as expected.
As soon as we want to tail the logs, this does not work:
logcli-windows-amd64.exe --addr="https://loki-gateway.xxx.live" --username="loki" --password="xxx" query -t --org-id="live-k8s|global-k8s" --since=1h "{namespace=\"live-core\"}"
Query with one tenant works great:
logcli-windows-amd64.exe --addr="https://loki-gateway.xxx.live" --username="loki" --password="xxx" query -t --org-id="live-k8s" --since=1h "{namespace=\"live-core\"}"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I understand the problem. Difficult to execute tailing with several tenantIds since it is getting split to several queries to each tenant. With CLI we can explicitly set tenant we want to execute tailing against. In grafana there is no such option. I think grafana team should find solution how to choose tenant for tailing in UI. It is said Loki is multitenant log storage, but in practice there are restrictions comparing with single tenant mode.
Tailing is important feature for developers.
Environment:
The text was updated successfully, but these errors were encountered: