cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

api/v2/logs/ingest endpoint gives a 404 error

Peter_Lepsis
Visitor

Hello all,

I'm trying to ingest logs from Filebeat in k8s to Dynatrace but when I test the endpoint at the Dynatrace UI

it gives me 404(Not found ) error. The URL looks like this:
https://mymanaged.dynatrace-managed.com/e/environmentid/api/v2/logs/ingest

It is a managed environment, not SaaS

What could be the reason?

Thanks a lot

Kind regards

Peter

8 REPLIES 8

Julius_Loman
DynaMight Legend
DynaMight Legend

As far as I remember, the log ingest endpoint is not enabled on the cluster embedded activate, only on environment ActiveGates, despite the docs mention it is enabled. Try using Environment ActiveGate instead. This is likely for load protection on the Dynatrace Managed node.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Peter_Lepsis
Visitor

Hello Julius,

 

thanks a lot for our answer. Yes, I tried to use the Activegate's endpoint but it keeps me saying "The API token is invalid" and I cannot figure out why.

Regards

Peter

Check if you have correct scope(s) for your token and if you are contacting the right gateway for your environment. Also be sure it's not a multi-environment gateway. 

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Peter_Lepsis
Visitor

This environment has a cluster and an environment gw, and only one environment. I checked the scope of the token and it has ag read/write, also log read/write/ingest.

 

Peter_Lepsis
Visitor

Peter_Lepsis_0-1716974840974.png

This is the request I use

Peter_Lepsis
Visitor

Peter_Lepsis_1-1716974924097.png

And here is the scope of the token I use

Julius_Loman
DynaMight Legend
DynaMight Legend

But this is not a bearer token, but the authorization header should contain Api-Token instead.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

paulo_calaxa
Observer

Hi.

For instance

paulo_calaxa_0-1716985935311.png

 

Featured Posts