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

Filtering Azure API Management Logs for Ingested Tracing in Dynatrace (4xx-5xx Errors)

sachinsom
Frequent Guest

I'm successfully collecting ingested traces from my Azure API Management (APIM) using Application Insights and OpenTelemetry (OTLP) integration with Dynatrace SaaS. However, I'm unable to filter the traces in Dynatrace to only include requests that resulted in 2xx success code or 4xx (client error) or 5xx (server error) HTTP response codes.

Setup:

  • APIM connected to Azure Functions backends.
  • Application Insights integrated with APIM at 100% sampling rate.
  • Diagnostic settings enabled in Application Insights to forward "AppRequest" and "AppDependency" logs to Azure EventHub.
  • Custom OSS utility converts Application Insights logs to OTLP format and sends them to Dynatrace SaaS OLTP ingest endpoint.

Screenshots

-> Ingested traces with requests giving 4xx and 5xx errors

sachinsom_0-1708427645426.png

-> Filtering 4xx HTTP Response code requests

sachinsom_1-1708427670217.png

 

Desired Outcome:

I want to filter the collected traces in Dynatrace to only include requests that resulted in 4xx or 5xx error codes for further analysis and troubleshooting.

Current Challenge:

I've been unable to identify an effective method to filter based on HTTP response codes within the Dynatrace platform.

Questions:

  1. Does Dynatrace offer any filtering capabilities based on HTTP response codes within the OTLP data received from Application Insights?
  2. If not, are there any alternative approaches or workaround solutions to achieve this filtering within Dynatrace?
  3. Are there specific configuration options in Application Insights or the custom OSS utility that can be utilized for this purpose?

Additional Information:

0 REPLIES 0

Featured Posts