Test function in Action Group sending metric alert when choosing "Log Alert V2"

Christian Jendeberg 0 Reputation points
2024-10-17T06:20:34.4233333+00:00

I used the Test function in an action group to send an alert of type "Log Alert V2" with the common alert schema. I however seem to get an alert with signal type "Metric". I was expecting a "Log" signal type.

Am I misunderstanding something?

I tested this with e-mail and function app destinations and from a couple of different Action Group resource instances.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,341 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshukatara-6769 11,150 Reputation points
    2024-10-17T06:29:49.3333333+00:00

    Hello Christian, Welcome to MS Q&A

    When you use the "Test" function in an action group, it might be simulating a metric alert rather than a log alert. This could be why you are seeing a signal type of "Metric" instead of "Log."

    To ensure you are testing a log alert, you should:

    1. Create a Log Alert Rule: Ensure that you have a log alert rule set up in Azure Monitor that queries log data and triggers an alert based on specific conditions.
    2. Trigger the Log Alert: Generate log data that matches the conditions specified in your log alert rule to trigger the alert.

    If you have already set up a log alert rule and are still seeing a metric signal type, it might be worth reviewing the configuration of your alert rule and action group to ensure they are correctly set up to handle log alerts.

    For more detailed guidance, you can refer to the Azure documentation on creating and managing log alerts and action groups.

    Please let us know if any further questions

    Kindly accept answers if it helps

    Thanks

    Deepanshu


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.