unable to receive logs from notificationhubnamesapce to log analytic workspace

2025-07-24T21:40:47.4266667+00:00

I have added diagnostic setting to notification hub ang directed logs to log analytic workspace but I am not receiving any logs

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Srikanth Reddy Bandi 10 Reputation points Microsoft External Staff Moderator
    2025-08-05T05:33:57.6366667+00:00

    Hello Sankeerthana Desireddy Admin Account,

    Thank you for submitting your question on Microsoft Q&A.

    Use a Targeted Query to Find Your Logs

    To quickly locate the logs you need, leverage a focused Kusto Query Language (KQL) query.

    • Open your Log Analytics workspace and navigate to the Logs section.
    • Execute the query below, making sure to replace the resource ID with your Notification Hub's actual ID:
    AzureDiagnostics
    | where ResourceId contains "/namespaces/YOUR_NOTIFICATION_HUB_NAMESPACE_NAME"
    | where Category == "OperationalLogs"
    | project TimeGenerated, OperationName, ResultType, Resource
    | sort by TimeGenerated desc
    

    If your logs are stored in a resource-specific table, use this alternative query:

    NHNamespaceLogs
    | where TimeGenerated > ago(7d)
    | where Category == "OperationalLogs"
    
    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.