Azure Alerts(Custom Log Search) how to get custom dimensions value into webhook

Chethan Parashuram 7 Reputation points
2022-08-16T11:21:07.417+00:00

I have configured Application insights from API Management, Inside App Insights i have configured Alert rules, whenever there is a error, Alert will be triggered & a webhook will be invoked with the alert details.
231552-log-alert.png

In Query i have added customdimensions["Request-Body"] and customdimensions["Response-Body"], which is not getting listed in split-dimension dropdown,

the fileds which are listed in dropdown only comes in webhook, but i need customdimensions["Request-Body"] and customdimensions["Response-Body"] as well, how to get it
231563-logalert.png

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,790 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Maxim Sergeev 6,566 Reputation points Microsoft Employee
    2022-08-16T16:45:17.107+00:00

    Hi there,

    The customdimension column is dynamic, so your query "extends" the schema, not adds

    231703-image.png

    If you want to leverage dimensions in alerting, convert it to string first

    231677-image.png

    1 person found this answer helpful.
    0 comments No comments