logs endpoint #742
-
I am sending traces,metrics and logs to the 4318 port. The traces and metrics are showing up but not the logs. I tried to curl into the corresponding URLs and /v1/traces and /v1/metrics are available but /v1/logs throws a 404. Is this by design or am I missing a configuration ? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
No, logs should work the same way - we do have some sample applications where logs work, e.g. https://github.com/grafana/docker-otel-lgtm/tree/main/examples/python |
Beta Was this translation helpful? Give feedback.
-
That is strange.
I logged into the container and tried
`curl http://localhost:4318/v1/logs`
and got a 404 response.
`curl http://localhost:4318/v1/traces `and
`curl http://localhost:4318/v1/metrics`
worked.
Perhaps the issue is only with the HTTP endpoint and the examples are using the GRPC port i.e. 4317. Everything works fine on the GRPC port for me too. I get the problem only when I switch to HTTP
…On Tue, Sep 2, 2025 at 1:48 AM Gregor Zeitlinger ***@***.***> wrote:
I am sending traces,metrics and logs to the 4318 port. The traces and
metrics are showing up but not the logs. I tried to curl into the
corresponding URLs and /v1/traces and /v1/metrics are available but
/v1/logs throws a 404. Is this by design or am I missing a configuration ?
No, logs should work the same way - we do have some sample applications
where logs work, e.g.
https://github.com/grafana/docker-otel-lgtm/tree/main/examples/python
—
Reply to this email directly, view it on GitHub
<#742 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB56UZ4UTJH5AMMHQPP2JPD3QU4VDAVCNFSM6AAAAACFLHUNEGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMRYGIZDIOI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
The node example does use HTTP and checks for logs: https://github.com/grafana/docker-otel-lgtm/blob/main/examples/nodejs/docker-compose.oats.yml I don't see what you're doing differently though |
Beta Was this translation helpful? Give feedback.
-
just tried - I don't get a 404:
|
Beta Was this translation helpful? Give feedback.
I was using an older version, I guess. Switching to the latest one resolved the issue