@NewDBA - Thanks for the question and using MS Q&A platform.
To set up an alert for the "Diagnostic: Diagnostic Error" activity log event for your Azure Stream Analytics jobs, you can use Azure Monitor.
You are correct that you can create an alert per Stream Analytics job, and it will cost 1.50 Euro per alert per job. However, you can create a single alert rule that applies to multiple Stream Analytics jobs by using a log query alert.
Here are the steps to create a log query alert for the "Diagnostic: Diagnostic Error" event:
- In the Azure portal, navigate to your Log Analytics workspace.
- Click on "Logs" in the left-hand menu.
- Enter the following query in the query editor:
AzureDiagnostics | where Category == "StreamAnalyticsJob" | where Level == "Error" | where Message contains "Diagnostic: Diagnostic Error"
- Click on "New alert rule" in the "Query results" pane.
- Configure the alert rule as desired, including the alert criteria, action group, and alert details.
- Save the alert rule.
This alert rule will trigger whenever the "Diagnostic: Diagnostic Error" event is logged for any of your Stream Analytics jobs. Note that you may need to adjust the query to match the specific format of the event message in your environment.
Regarding the message ribbon you mentioned, it is correct that metric and log signals might not be available if the scope includes multiple resources. However, this should not affect your ability to create a log query alert as described above.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.