-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loki Logcli is not working #1468
Comments
Can you please try hitting that URL directly using a browser and see what HTML is being returned? I suspect some other component is erroring out and the request is not even reaching Loki. |
Thanks Sandeep for your response.
When I tried the URL and it's showing 404 not found error.
While checking grafa logs there no hit on that.
…On Tue, Jan 7, 2020, 12:41 Sandeep Sukhani ***@***.***> wrote:
Can you please try hitting that URL directly using a browser and see what
HTML is being returned? I suspect some other component is erroring out and
the request is not even reaching Loki.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1468?email_source=notifications&email_token=ADZKWSE4DFDJJHZWFCR4VOLQ4QTJVA5CNFSM4KC7UBDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIH55XI#issuecomment-571465437>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADZKWSED3OZ3BCDCA2DRLPLQ4QTJVANCNFSM4KC7UBDA>
.
|
I think the issue is with the url that is set in GRAFANA_ADDR. It should be pointing to loki server, not grafana since logcli is meant to talk to loki server directly. Can you please give a try after updating it? |
Yes. Its working now. as per the Docs i just given the Grafana url Thanks for your prompt response |
Describe the bug
I have tried the loki logcli to access the container logs on kubernetes and itsn't not working. I used to following way as per the loki documentation. Environment vars exposed as mentioned.
$ export GRAFANA_ADDR=https://test.grafanadomain.com
$ export GRAFANA_USERNAME=admin
$ export GRAFANA_PASSWORD=admin123
After exposed the environment vars and i got following error.
Expected behavior
Environment:logcli labels analytics
https://monitoring-dev.example.com//loki/api/v1/label/analytics/values
Error doing request: readObjectStart: expect { or n, but found <, error found in #1 byte of ...|
Screenshots, Promtail config, or terminal output
![image](https://user-images.githubusercontent.com/15903560/71796888-f51d5780-3071-11ea-916e-4fb8b7c10117.png)
The text was updated successfully, but these errors were encountered: