Search code examples
azureazure-eventhubazure-stream-analyticsazure-log-analytics

Azure Event Hub diagnostic set up for User Errors


I am running a set up, where Stream Analytics job is reading from Azure Event Hub. Event Hub is contained within a namespace and there is consumer group created for SA specifically.

Recently I noticed User Error on Event Hub metrics. enter image description here

Event Hub Namespace is configured to push all logs to OMS:

  • ArchiveLogs
  • OperationalLogs
  • AutoScaleLogs
  • KafkaCoordinatorLogs
  • EventHubVNetConnectionEvent
  • CustomerManagedKeyUserLogs
  • KafkaUserErrorLogs

But that does not seem to cover that particular case, since I am unable to find that error in Log Analytics Workspace (e.g. by doing search "UserError" over last 24 hours).

Searching through docs is not to helpful either. Closest I have found was in .NET SDK for Azure:

Namespace: Microsoft.Azure.EventHubs
Assembly: Microsoft.Azure.EventHubs.dll
UserError Identifies the exception as a user error and user needs to take an action to address the failure.

But that is not very helpful either, as it does not even indicate whether user is the sender or receiver of message.

What is the UserError in that case and how to pinpoint, what is actually happening?


Solution

  • User errors generally occur due to mistakes in the client application like,

    User Errors in Event hub and service bus occurs due to similar reasons .. You can refer Azure Service Bus Message Queue User Errors Metric