- i selected service bus-> alert-> create Alertrule-> signal-> custom log search creating query for message not consumed for more than 2 hour in service bus queue but unable to find message detail data in Azure diagnostics table. Can nayone help me how to achive this alert rule
i tried by enabling Diagnostic setting in service bus namespace to collect the diagnostic log. but not able to find the messages detail
Firstly, enable
diagnostic settingsin the service bus namespace as you already did. Once it is done, use below log query to retrieve consumed messages more than 2 hours in service bus queue once you selectedcustom log search signalwhen creating an alert rule.Alert rule created successfully:
Refer categories of Azure service bus detailed in MS Doc.