You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Azure Event Grid - Diagnostic logs for topics or domains
3
-
description: This article provides conceptual information about diagnostic logs for an Azure event grid topic or a domain.
2
+
title: Azure Event Grid - Diagnostic logs for Azure Event Grid topics and Event Grid domains
3
+
description: This article provides conceptual information about diagnostic logs for an Azure Event Grid topic or a domain.
4
4
ms.topic: conceptual
5
-
ms.date: 09/28/2021
5
+
ms.date: 11/11/2021
6
6
---
7
7
8
-
# Diagnostic logs for Azure Event Grid topics/domains
9
-
Diagnostic settings allow Event Grid users to capture and view **publish and delivery failure** logs in either a Storage account, an event hub, or a Log Analytics Workspace. This article provides schema for the logs and an example log entry.
8
+
# Diagnostic logs for Event Grid Topics and Event Grid Domains
10
9
10
+
Diagnostic settings allow Event Grid users to capture and view **publish and delivery failure** logs in either a Storage account, an event hub, or a Log Analytics Workspace. This article provides schema for the logs and an example log entry.
11
11
12
12
## Schema for publish/delivery failure logs
13
13
14
14
| Property name | Data type | Description |
15
-
| ------------- | --------- | ----------- |
15
+
| ------------- | --------- | ----------- |
16
16
| Time | DateTime | The time when the log entry was generated <p>**Example value:** 01-29-2020 09:52:02.700</p> |
17
17
| EventSubscriptionName | String | The name of the event subscription <p>**Example value:** "EVENTSUB1"</p> <p>This property exists only for delivery failure logs.</p> |
18
18
| Category | String | The log category name. <p>**Example values:** "DeliveryFailures" or "PublishFailures" |
19
19
| OperationName | String | The name of the operation caused the failure.<p>**Example Values:** "Deliver" for delivery failures. |
20
20
| Message | String | The log message for the user explaining the reason for the failure and other additional details. |
21
21
| ResourceId | String | The resource ID for the topic/domain resource<p>**Example Values:**`/SUBSCRIPTIONS/SAMPLE-SUBSCRIPTION-ID/RESOURCEGROUPS/SAMPLE-RESOURCEGROUP/PROVIDERS/MICROSOFT.EVENTGRID/TOPICS/TOPIC1`|
22
22
23
-
## Example
23
+
## Example - Schema for publish/delivery failure logs
24
24
25
25
```json
26
26
{
@@ -33,7 +33,50 @@ Diagnostic settings allow Event Grid users to capture and view **publish and del
33
33
}
34
34
```
35
35
36
-
The possible values of `Outcome` are `Aborted`, `TimedOut`, `GenericError`, and `Busy`. Event Grid logs any information it receives from the event handler in the `message`. For example, for `GenericError`, it logs the HTTP status code, error code, and the error message.
36
+
The possible values of `Outcome` are `NotFound`, `Aborted`, `TimedOut`, `GenericError`, and `Busy`. Event Grid logs any information it receives from the event handler in the `message`. For example, for `GenericError`, it logs the HTTP status code, error code, and the error message.
37
+
38
+
## Schema for data plane requests
39
+
40
+
| Property name | Data type | Description |
41
+
| ------------- | --------- | ----------- |
42
+
| NetworkAccess | String |**PublicAccess** - when the connection via public IP <br /> **PrivateAccess** - when the connection via private link |
43
+
| ClientIpAddress | String | Source IP of incoming requests |
44
+
| TlsVersion | String | The Tls version used by the client connection. **1.0**, **1.1** and **1.2** are possible values |
45
+
| Authentication/Type | String | The type of secret used for authentication when publishing messages. <br /> **Unknown** – not of the other authentication types. OPTIONS requests will have this authentication type <br /> **Key** – request uses the SAS key <br /> **SASToken** – request uses a SAS token generated from SAS key <br /> **AADAccessToken** – AAD issued JWT token |
46
+
| Authentication/ObjectId | String | ObjectId of the Service Principal used AADAccessToken authentication type |
47
+
| OperationResult | String | Result of the publish. **Success**, **Unauthorized**, **Forbidden**, **RequestEntityTooLarge**, **BadRequest** & **InternalServerError**|
48
+
| TotalOperations | String | These traces are not emitted for each publish request. An aggregate for each unique combination of above values is emitted every minute |
Once `DataPlaneRequests` diagnostic setting is selected, Event Grid resources will start publishing the audit traces for data plane operations including the public and private access, this trace may log one or more requests if needed.
37
79
38
80
## Next steps
81
+
39
82
To learn how to enable diagnostic logs for topics or domains, see [Enable diagnostic logs](enable-diagnostic-logs-topic.md).
0 commit comments