To stop unwanted notifications from Log Analytics workspace alerting service

Sgudepu 0 Reputation points
2023-10-23T20:30:53.5866667+00:00

Hi there,
We setup a Azure Monitor alert notifications for long running jobs (i.e., 4 Hrs) with below query rule.

ADFPipelineRun

And somehow it is generating email for a job that completes within a minute and it is showing incorrect Run end values in the insights of the email as shown below even though the system parameters are valid.User's image

Could you please provide the cause and resolution to eradicate this.

Thanks in advance!

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,561 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,426 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 31,391 Reputation points
    2023-10-26T18:39:22.7833333+00:00

    The logic seems to have some contradictions. Why? Because you're looking for InProgress runs with a status of Succeeded, Failed or Cancelled.This doesn't make sense because a run cannot simultaneously have both InProgress and one of the other statuses. This might explain the unexpected results you're seeing.

    Consider simplifying the query. If you're trying to get alerts for jobs that are in progress for more than 4 hours, you can use:

    ADFPipelineRun
    | where Status == "InProgress"
    | where datetime_diff('minute', now(), Start) > 240
    
    1 person found this answer helpful.
    0 comments No comments

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.