Hi,
I wanted to pull all the exception that occurred with it’s counts using API. Can I fetch the result by using provided API and if yes then let me know the API details.
Hi,
I wanted to pull all the exception that occurred with it’s counts using API. Can I fetch the result by using provided API and if yes then let me know the API details.
Hi @Shruts
To retrieve exceptions and their counts using the Dynatrace API, you can utilize the Dynatrace Problem and Event Feed API or the Logs API, depending on the exact nature of the data you’re interested in.
Example:
GET https://{your-environment-id}.live.dynatrace.com/api/v2/logs/query
Authorization: Api-Token {your-api-token}
Content-Type: application/json
{
“query”: “log level ERROR | count”,
“from”: “now-2d”,
“to”: “now”
}
Radek
Hi,
Can you send API documentation link or swagger document link for Logs API? Because couldn’t able to find this API in given swagger doc.
Thanks & Regards,
Shruti
You may be looking for this information displayed in the multidimensional analysis tool
There you can create a Metric based on the Exceptions and the count.
Once you have the metric you can easily pull the information from /api/v2/metrics
You may need to filter down the search using a specific service or request otherwise it may not work if you have too much data in your environment.
Please note that creating additional metrics consumes the DDU licence.