针对用户错误的 Azure 事件中心诊断设置
Azure Event Hub diagnostic set up for User Errors
我是 运行 一个设置,流分析作业正在从 Azure 事件中心读取数据。事件中心包含在命名空间中,并且有专门为 SA 创建的使用者组。
最近我注意到 User Error
事件中心指标。
事件中心命名空间配置为将所有日志推送到 OMS:
- 存档日志
- 操作日志
- AutoScaleLogs
- KafkaCoordinatorLogs
- EventHubVNetConnectionEvent
- CustomerManagedKeyUserLogs
- KafkaUserErrorLogs
但这似乎并未涵盖该特定情况,因为我无法在 Log Analytics Workspace 中找到该错误(例如,通过在过去 24 小时内执行 search "UserError"
)。
通过文档搜索也无济于事。我发现最接近的是 .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.
但这也不是很有用,因为它甚至不能表明用户是消息的发送者还是接收者。
在那种情况下 UserError
是什么以及如何查明实际发生了什么?
用户错误通常是由于客户端应用程序中的错误而发生的,例如,
事件中心和服务总线中的用户错误由于类似原因而发生。您可以参考Azure Service Bus Message Queue User Errors Metric
我是 运行 一个设置,流分析作业正在从 Azure 事件中心读取数据。事件中心包含在命名空间中,并且有专门为 SA 创建的使用者组。
最近我注意到 User Error
事件中心指标。
事件中心命名空间配置为将所有日志推送到 OMS:
- 存档日志
- 操作日志
- AutoScaleLogs
- KafkaCoordinatorLogs
- EventHubVNetConnectionEvent
- CustomerManagedKeyUserLogs
- KafkaUserErrorLogs
但这似乎并未涵盖该特定情况,因为我无法在 Log Analytics Workspace 中找到该错误(例如,通过在过去 24 小时内执行 search "UserError"
)。
通过文档搜索也无济于事。我发现最接近的是 .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.
但这也不是很有用,因为它甚至不能表明用户是消息的发送者还是接收者。
在那种情况下 UserError
是什么以及如何查明实际发生了什么?
用户错误通常是由于客户端应用程序中的错误而发生的,例如,
事件中心和服务总线中的用户错误由于类似原因而发生。您可以参考Azure Service Bus Message Queue User Errors Metric