28 May 2024 02:14 PM - last edited on 18 Jun 2024 01:54 PM by Michal_Gebacki
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
28 May 2024 03:16 PM
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.
29 May 2024 10:12 AM
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
29 May 2024 10:21 AM
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.
29 May 2024 10:24 AM
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.
29 May 2024 10:27 AM
This is the request I use
29 May 2024 10:29 AM
And here is the scope of the token I use
29 May 2024 11:04 AM
But this is not a bearer token, but the authorization header should contain Api-Token instead.