Hello, Im new to Dynatrace and im currently facing problems when trying to get the logs through the API, at first i thought i was a problem with the token, but now that i have a oauth token, it’s still not working.
Can anyone help?
Hello, Im new to Dynatrace and im currently facing problems when trying to get the logs through the API, at first i thought i was a problem with the token, but now that i have a oauth token, it’s still not working.
Can anyone help?
Hi,
Could you share more details as which API are you using? Or which error are you getting?
Best regards
curl -X GET “https://{environmentid}.live.dynatrace.com/api/v2/logs/export?pageSize=5000” \
-H “Authorization: Bearer <oauth token>”
and even with Api-token it still doesnt work, this is the rror:
{“error”: {“code”: 401,“message”: “Couldn’t resolve Platform token introspection. Endpoint returned 401. Token has expired, is inactive or user is inactive. IssueId: QJIRX3236BE2E5PV. Token identifier: dt0s02.ZBYZBBIB”}}i just checked the token is active in Dynatrace
Hi,
I would raise a support ticket to confirm why token is marked as expired, if it not expired.
Best regards
i have oauth token already generated but my problem is with the command
Hello, the token he’s talking about is already generated but isnt giving me access
To generate an access token