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
Copy file name to clipboardExpand all lines: articles/event-hubs/monitor-event-hubs.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,10 +147,10 @@ Using *Runtime audit logs* you can capture aggregated diagnostic information for
147
147
### Enable runtime logs
148
148
You can enable either runtime audit logs or application metrics logs by selecting *Diagnostic settings* from the *Monitoring* section on the Event Hubs namespace page in Azure Portal. Click on *Add diagnostic setting* as shown below.
149
149
150
-

150
+

151
151
152
152
Then you can enable log categories *RuntimeAuditLogs* or *ApplicationMetricsLogs* as needed.
153
-

153
+

154
154
155
155
Once runtime logs are enabled, Event Hubs will start collecting and storing them according to the diagnostic setting configuration.
156
156
@@ -168,7 +168,7 @@ AzureDiagnostics
168
168
| where Category == "RuntimeAuditLogs"
169
169
```
170
170
Up on the execution of the query you should be able to obtain corresponding audit logs in the following format.
171
-

171
+
:::image type="content" source="./media/monitor-event-hubs/runtime-audit-logs.png" alt-text="Image showing the result of a sample query to analyze runtime audit logs." lightbox="./media/monitor-event-hubs/runtime-audit-logs.png":::
172
172
173
173
By analyzing these logs you should be able to audit how each client application interacts with Event Hubs. Each feild associated with runtime audit logs are defined in [runtime audit logs reference](../event-hubs/monitor-event-hubs-reference.md#runtime-audit-logs).
174
174
@@ -181,8 +181,9 @@ AzureDiagnostics
181
181
| where TimeGenerated > ago(1h)
182
182
| where Category == "ApplicationMetricsLogs"
183
183
```
184
+
184
185
Application metrics includes the following runtime metrics.
185
-

186
+
:::image type="content" source="./media/monitor-event-hubs/application-metrics-logs.png" alt-text="Image showing the result of a sample query to analyze application metrics." lightbox="./media/monitor-event-hubs/./media/monitor-event-hubs/application-metrics-logs.png":::
186
187
187
188
Therefore you can use application metrics to monitor runtime metrics such as consumer lag or active connection from a given client application. Each feild associated with runtime audit logs are defined in [applicaiton metrics logs reference](../event-hubs/monitor-event-hubs-reference.md#runtime-audit-logs).
0 commit comments