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
See [Monitoring Azure Service Bus](monitor-service-bus.md) for details on collecting and analyzing monitoring data for Azure Service Bus.
12
11
@@ -97,25 +96,36 @@ This section lists the types of resource logs you can collect for Azure Service
97
96
98
97
- Operational logs
99
98
- Virtual network and IP filtering logs
99
+
- Runtime Audit logs
100
+
101
+
Azure Service Bus now has the capability to dispatch logs to either of two destination tables - Azure Diagnostic or [Resource specific tables](~/articles/azure-monitor/essentials/resource-logs.md) in Log Analytics. You could use the toggle available on Azure portal to choose destination tables.
102
+
103
+
:::image type="content" source="media/monitor-service-bus-reference/destination-table-toggle.png" alt-text="Screenshot of dialog box to set destination table." lightbox="media/monitor-service-bus-reference/destination-table-toggle.png":::
100
104
101
105
### Operational logs
102
106
Operational log entries include elements listed in the following table:
103
107
104
-
| Name | Description |
105
-
| ------- | ------- |
106
-
|`ActivityId`| Internal ID, used to identify the specified activity |
107
-
|`EventName`| Operation name |
108
-
|`ResourceId`| Azure Resource Manager resource ID |
109
-
|`SubscriptionId`| Subscription ID |
110
-
|`EventTimeString`| Operation time |
111
-
|`EventProperties`| Operation properties |
112
-
|`Status`| Operation status |
113
-
|`Caller`| Caller of operation (the Azure portal or management client) |
114
-
|`Category`| OperationalLogs |
108
+
| Name | Description | Supported in AzureDiagnostics | Supported in AZMSOperationalLogs (Resource Specific table)|
109
+
| ------- | ------- |---| ---|
110
+
|`ActivityId`| Internal ID, used to identify the specified activity | Yes | Yes|
111
+
|`EventName`| Operation name | Yes | Yes|
112
+
|`ResourceId`| Azure Resource Manager resource ID | Yes | Yes|
113
+
|`SubscriptionId`| Subscription ID | Yes | Yes|
114
+
|`EventtimeString`| Operation Time | Yes | No|
115
+
|`TimeGenerated [UTC]`|Time of executed operation (in UTC)| No | Yes|
"resourceId": "/SUBSCRIPTIONS/<AZURE SUBSCRPTION ID>/RESOURCEGROUPS/<RESOURCE GROUP NAME>/PROVIDERS/MICROSOFT.SERVICEBUS/NAMESPACES/<SERVICE BUS NAMESPACE NAME>",
> Currently, *Read* operations aren't tracked in the operational logs.
149
182
150
183
### Virtual network and IP filtering logs
151
184
Service Bus virtual network (VNet) connection event JSON includes elements listed in the following table:
152
185
153
-
| Name | Description |
154
-
| --- | ----------- |
155
-
|`SubscriptionId`| Azure subscription ID |
156
-
|`NamespaceName`| Namespace name |
157
-
|`IPAddress`| IP address of a client connecting to the Service Bus service |
158
-
|`Action`| Action done by the Service Bus service when evaluating connection requests. Supported actions are **Accept Connection** and **Deny Connection**. |
159
-
|`Reason`| Provides a reason why the action was done |
160
-
|`Count`| Number of occurrences for the given action |
| Name | Description | Supported in Azure Diagnostics | Supported in AZMSVnetConnectionEvents (Resource specific table)
187
+
| --- | ----------- |---| ---|
188
+
| `SubscriptionId` | Azure subscription ID | Yes | Yes
189
+
| `NamespaceName` | Namespace name | Yes | Yes
190
+
| `IPAddress` | IP address of a client connecting to the Service Bus service | Yes | Yes
191
+
| `AddressIP` | IP address of client connecting to service bus | Yes | Yes
192
+
| `TimeGenerated [UTC]`|Time of executed operation (in UTC) | Yes | Yes
193
+
| `Action` | Action done by the Service Bus service when evaluating connection requests. Supported actions are **Accept Connection** and **Deny Connection**. | Yes | Yes
194
+
| `Reason` | Provides a reason why the action was done | Yes | Yes
195
+
| `Count` | Number of occurrences for the given action | Yes | Yes
"ResourceId": "/SUBSCRIPTIONS/<AZURE SUBSCRPTION ID>/RESOURCEGROUPS/<RESOURCE GROUP NAME>/PROVIDERS/MICROSOFT.SERVICEBUS/NAMESPACES/<SERVICE BUS NAMESPACE NAME>",
229
+
"Provider" : "SERVICEBUS",
230
+
"Type": "AZMSVNetConnectionEvents"
231
+
}
232
+
```
181
233
182
234
## Runtime audit logs
183
235
Runtime audit logs capture aggregated diagnostic information for various data plane access operations (such as send or receive messages) in Service Bus.
@@ -187,24 +239,28 @@ Runtime audit logs capture aggregated diagnostic information for various data pl
187
239
188
240
Runtime audit logs include the elements listed in the following table:
189
241
190
-
Name | Description
191
-
------- | -------
192
-
`ActivityId` | A randomly generated UUID that ensures uniqueness for the audit activity.
193
-
`ActivityName` | Runtime operation name.
194
-
`ResourceId` | Resource associated with the activity.
195
-
`Timestamp` | Aggregation time.
196
-
`Status` | Status of the activity (success or failure).
197
-
`Protocol` | Type of the protocol associated with the operation.
198
-
`AuthType` | Type of authentication (Azure Active Directory or SAS Policy).
199
-
`AuthKey` | Azure Active Directory application ID or SAS policy name that's used to authenticate to a resource.
200
-
`NetworkType` | Type of the network access: `Public` or`Private`.
201
-
`ClientIP` | IP address of the client application.
202
-
`Count` | Total number of operations performed during the aggregated period of 1 minute.
203
-
`Properties` | Metadata that is specific to the data plane operation.
204
-
`Category` | Log category
242
+
Name | Description | Supported in Azure Diagnostics | Supported in AZMSRuntimeAuditLogs (Resource specific table)
243
+
------- | -------| ---|---|
244
+
`ActivityId` | A randomly generated UUID that ensures uniqueness for the audit activity. | Yes | Yes
"ResourceId": "/SUBSCRIPTIONS/xxx/RESOURCEGROUPS/<Resource Group Name>/PROVIDERS/MICROSOFT.SERVICEBUS/NAMESPACES/<Service Bus namespace>/servicebus/<service bus name>",
"AuthKey": "<AAD Application Name| SAS policy name>",
292
+
"NetworkType": "Public | Private",
293
+
"ClientIp": "x.x.x.x",
294
+
"Count": 1,
295
+
"Provider": "SERVICEBUS",
296
+
"Type" : "AZMSRuntimeAuditLogs"
297
+
}
225
298
299
+
```
226
300
## Azure Monitor Logs tables
227
301
Azure Service Bus 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#service-bus).
228
302
229
303
## Next steps
230
304
- For details on monitoring Azure Service Bus, see [Monitoring Azure Service Bus](monitor-service-bus.md).
231
305
- For details on monitoring Azure resources, see [Monitoring Azure resources with Azure Monitor](../azure-monitor/essentials/monitor-azure-resource.md).
0 commit comments