-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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 docker driver can not push to server. Gives 404 errors. #2108
Comments
Can you add info logs and show us the line where this appears:
Feel like there could be some dns issue with your driver ? Promtail and Docker driver actually use the same go code to send data. So it's weird one is working only. |
actually info logs are on by default :) |
|
Well you might have seen it but the logs shows the port is missing, any idea why ? |
Ah, that explains probably why it is not working. But in daemon.json the port is there.... (see first post) Maybe some OS info might help:
Server: Docker Engine - Community |
Not sure I've setup the deamon too and it works fine: {
"debug": true,
"experimental": false,
"log-driver": "loki",
"log-opts": {
"loki-url": "https://localhost:3100/loki/api/v1/push",
"loki-batch-size": "400"
}
}
see the loki-url contains the port. I'm using 19.03.8. Not sure what's up, but must be either your config or your dockerd. |
Ok, made my loki instance available on port 443... Fixes this for now. Don't know what the issue is, but this works for me now. |
…ient (grafana#2108) * rename ObjectClient to Client and create ObjectClient interface and generic ObjectClient chunk.Client Signed-off-by: Jacob Lisi <[email protected]> * return errors withstack Signed-off-by: Jacob Lisi <[email protected]> * fix imports of file Signed-off-by: Jacob Lisi <[email protected]> * add errors package Signed-off-by: Jacob Lisi <[email protected]> * update comments to reflect renamed interface Signed-off-by: Jacob Lisi <[email protected]>
I've configured the docker daemon to send all docker logs to my Loki server. I've also a promtail container running, wit the same endpoint, and those logs get pushed to loki without a problem.
The docker logs are not received though.
To Reproduce
Install Loki docker driver and check status
ID NAME DESCRIPTION ENABLED
1949660d95d7 loki:latest Loki Logging Driver true
Configure docker daemon to use Loki driver
systemctl restart docker
Expected behavior
See the docker logs in Grafana. But no logs are collected.
I can see in the syslog messages like:
ubuntu-8gb-nbg1-1 dockerd[29464]: time="2020-05-21T16:26:21+02:00" level=info msg="level=error ts=2020-05-21T14:26:21.051575851Z caller=client.go:247 container_id=5edb13014e9a770c00bc4510883e30ff9ff108fd76de26aec271da83302c8539 component=client host=loki.mydomain.nl msg="final error sending batch" status=404 error="server returned HTTP status 404 Not Found (404): 404 page not found"" plugin=1949660d95d7235dccf4c319f34d8178f2d6a706b741b37abca66548cca5e7ac
Promtail works just fine with this config:
Am I missing something? As far as I can see I followed the documentation on https://github.com/grafana/loki/tree/v1.5.0/docs/clients/docker-driver
Environment:
All dockers run with docker compose files, no Kubernetes
The text was updated successfully, but these errors were encountered: