Skip to content

Commit f01b552

Browse files
committed
Add Runtime audit logs
1 parent a2c7d78 commit f01b552

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

articles/event-hubs/monitor-event-hubs-reference.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,64 @@ Azure Event Hubs supports the following dimensions for metrics in Azure Monitor.
7979
[!INCLUDE [event-hubs-diagnostic-log-schema](./includes/event-hubs-diagnostic-log-schema.md)]
8080

8181

82+
## Runtime Audit Logs
83+
Runtime Audit Logs captures aggregated diagnostic logs for all data plane access operations (such as send or receive events) in Dedicated SKU.
84+
85+
> [!NOTE]
86+
> Runtime audit logs are currently available in *Dedicated* tier only.
87+
88+
Runtime Audit Logs include the elements listed in the following table:
89+
Name | Description
90+
------- | -------
91+
`ActivityId` | A randomly generated UUID that ensures uniqueness for the audit activity.
92+
`ActivityName` | Runtime operation name.
93+
`ResourceId` | Resource associated with the activity.
94+
`Timestamp` | Aggregation time.
95+
`Status` | Status of the activity (success or failure).
96+
`Protocol` | Type of the protocol associated with the operation.
97+
`AuthType` | Type of authentication (AAD or SAS Policy).
98+
`AuthKey` | AAD application Id or SAS policy name which is used to authenticate to a resource.
99+
`NetworkType` | Type of the network: PublicNetworkAccess, PrivateNetworkAccess.
100+
`ClientIP` | IP address of client application.
101+
`Count` | Total number of operations performed during the aggregated period of 1 minute.
102+
`Properties` | Metadata that are specific to the data plane operation.
103+
`Category` | Log category
104+
105+
The following code is an example of a runtime audit log JSON string:
106+
107+
```json
108+
Example:
109+
{
110+
"ActivityId": "<activity id>",
111+
"ActivityName": "ConnectionOpen | Authenticate | SendMessage | ReceiveMessage | GetRuntimeInfo",
112+
"ResourceId": "/SUBSCRIPTIONS/xxx/RESOURCEGROUPS/<Resource Group Name>/PROVIDERS/MICROSOFT.EVENTHUB/NAMESPACES/<Event Hubs namespace>/eventhubs/<event hub name>",
113+
"Time": "1/1/2021 8:40:06 PM +00:00",
114+
"Status": "Success | Failure",
115+
"Protocol": "AMQP | KAFKA | HTTP | Web Sockets",
116+
"AuthType": "SAS | AAD",
117+
"AuthId": "<app name | SAS policy name>",
118+
"NetworkType": "PublicNetworkAccess | PrivateNetworkAccess",
119+
"ClientIp": "x.x.x.x",
120+
"Count": 1,
121+
"Properties": {
122+
"key1": "value1",
123+
"key2": "value2"
124+
},
125+
"Category": "RuntimeAuditLogs"
126+
}
127+
128+
```
129+
130+
## Application Metrics Logs
131+
Application Metrics Logs captures the aggregated information on certain metrics related data plane operations. This includes following runtime metrics.
132+
133+
Name | Description
134+
------- | -------
135+
ConsumerLag | Indicate the lag between the consumers and producers.
136+
NamespaceActiveConnections | Details of the active connections established from a client to Event Hub.
137+
GetRuntimeInfo | Obtain run time information from Event Hubs.
138+
GetPartitionRuntimeInfo | Obtain the approximate runtime information for a logical partition of an Event Hub.
139+
82140

83141
## Azure Monitor Logs tables
84142
Azure Event Hubs uses Kusto tables from Azure Monitor Logs. You can query these tables with Log Analytics. For a list of Kusto tables the service uses, see [Azure Monitor Logs table reference](/azure/azure-monitor/reference/tables/tables-resourcetype#event-hubs).

articles/event-hubs/monitor-event-hubs.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,17 @@ Following are sample queries that you can use to help you monitor your Azure Eve
8989
| where ResourceProvider =="MICROSOFT.EVENTHUB"
9090
| where Category == "OperationalLogs"
9191
| summarize count() by "EventName"
92+
93+
+ Get runtime audit logs during last hour.
94+
95+
```Kusto
96+
AzureDiagnostics
97+
| where TimeGenerated > ago(1h)
98+
| where ResourceProvider =="MICROSOFT.EVENTHUB"
99+
| where Category == "RuntimeAuditLogs"
92100
```
93101
102+
94103
+ Get access attempts to a key vault that resulted in "key not found" error.
95104
96105
```Kusto

0 commit comments

Comments
 (0)