Skip to content

Commit c4d72fd

Browse files
authored
Merge pull request #179859 from robece/master
Updated document and audit logs feature added
2 parents abde5b9 + e7f7907 commit c4d72fd

21 files changed

+122
-68
lines changed
Lines changed: 51 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
---
2-
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.
44
ms.topic: conceptual
5-
ms.date: 09/28/2021
5+
ms.date: 11/11/2021
66
---
77

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
109

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.
1111

1212
## Schema for publish/delivery failure logs
1313

1414
| Property name | Data type | Description |
15-
| ------------- | --------- | ----------- |
15+
| ------------- | --------- | ----------- |
1616
| Time | DateTime | The time when the log entry was generated <p>**Example value:** 01-29-2020 09:52:02.700</p> |
1717
| EventSubscriptionName | String | The name of the event subscription <p>**Example value:** "EVENTSUB1"</p> <p>This property exists only for delivery failure logs.</p> |
1818
| Category | String | The log category name. <p>**Example values:** "DeliveryFailures" or "PublishFailures" |
1919
| OperationName | String | The name of the operation caused the failure.<p>**Example Values:** "Deliver" for delivery failures. |
2020
| Message | String | The log message for the user explaining the reason for the failure and other additional details. |
2121
| 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` |
2222

23-
## Example
23+
## Example - Schema for publish/delivery failure logs
2424

2525
```json
2626
{
@@ -33,7 +33,50 @@ Diagnostic settings allow Event Grid users to capture and view **publish and del
3333
}
3434
```
3535

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 |
49+
50+
## Example - Schema for data plane requests
51+
52+
```json
53+
{
54+
"time": "2021-10-26T21:44:16.8117322Z",
55+
"resourceId": "/SUBSCRIPTIONS/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/RESOURCEGROUPS/BMT-TEST/PROVIDERS/MICROSOFT.EVENTGRID/DOMAINS/BMTAUDITLOGDOMAIN",
56+
"operationName": "Microsoft.EventGrid/events/send",
57+
"category": "DataPlaneRequests",
58+
"level": "Information",
59+
"region": "CENTRALUSEUAP",
60+
"properties": {
61+
"aggregatedRequests": [
62+
{
63+
"networkAccess": "PublicAccess",
64+
"clientIpAddress": "xx.xx.xx.xxx",
65+
"tlsVersion": "1.2",
66+
"authentication": {
67+
"type": "AADAccessToken",
68+
"objectId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx"
69+
},
70+
"operationResult": "Success",
71+
"totalOperations": 1
72+
}
73+
]
74+
}
75+
}
76+
```
77+
78+
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.
3779

3880
## Next steps
81+
3982
To learn how to enable diagnostic logs for topics or domains, see [Enable diagnostic logs](enable-diagnostic-logs-topic.md).

0 commit comments

Comments
 (0)