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-reference.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,10 +85,10 @@ Azure Event Hubs supports the following dimensions for metrics in Azure Monitor.
85
85
86
86
87
87
## Runtime audit logs
88
-
Runtime audit logs capture aggregated diagnostic information for all data plane access operations (such as send or receive events) in the Event Hubs dedicated cluster.
88
+
Runtime audit logs capture aggregated diagnostic information for all data plane access operations (such as send or receive events) in Event Hubs.
89
89
90
90
> [!NOTE]
91
-
> Runtime audit logs are currently available only in **premium** and **dedicated** tiers.
91
+
> Runtime audit logs are available only in **premium** and **dedicated** tiers.
92
92
93
93
Runtime audit logs include the elements listed in the following table:
94
94
@@ -132,7 +132,7 @@ Here's an example of a runtime audit log entry:
132
132
Application metrics logs capture the aggregated information on certain metrics related to data plane operations. The captured information includes the following runtime metrics.
133
133
134
134
> [!NOTE]
135
-
> Application metrics logs are currently available only in **premium** and **dedicated** tiers.
135
+
> Application metrics logs are available only in **premium** and **dedicated** tiers.
Copy file name to clipboardExpand all lines: articles/event-hubs/monitor-event-hubs.md
+23-39Lines changed: 23 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,75 +134,59 @@ Following are sample queries that you can use to help you monitor your Azure Eve
134
134
135
135
```
136
136
137
-
## Using Runtime logs
137
+
## Using Runtime logs
138
138
139
-
Runtime audit logs capture aggregated diagnostic information for all data plane access operations
139
+
Azure Event Hubs allows you to monitor and audit data plane interactions of your client applications using runtime audit logs and application metrics logs.
140
+
141
+
Using *Runtime audit logs* you can capture aggregated diagnostic information for all data plane access operations such as publishing or comsuming events.
142
+
*Application metrics logs* capture the aggregated data on certain runtime metrics (such as consumer lag and active connections) related to client applications are connected to Event Hubs.
143
+
144
+
> [!NOTE]
145
+
> Runtime audit logs are available only in **premium** and **dedicated** tiers.
140
146
141
147
### Enabling Runtime logs
142
-
Azure Event Hubs
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.
143
149
144
150

145
151
146
-
Azure Event Hubs
152
+
Then you can enable log categories *RuntimeAuditLogs* or *ApplicationMetricsLogs* as needed.
147
153

148
154
155
+
Once runtime logs are enabled, Event Hubs will start collecting and storing them according to the diagnostic setting configuration.
149
156
150
157
### Publishing and consuming sample data
151
-
Azure Event Hubs
152
-
153
-
Publish data using Event Hubs SDK (AMQP)
154
-
155
-
Consume data using Event Hubs SDK
156
-
157
-
158
-
159
-
160
-
Query logs using:
161
-
162
-
163
-
164
-
165
-
166
-
158
+
To collect sample runtime audit logs in your Event Hubs namespace, you can publish and consume sample data using client applications which are based on [Event Hubs SDK](../event-hubs/event-hubs-dotnet-standard-getstarted-send.md) (AMQP) or using any [Apache Kafka client application](../event-hubs/event-hubs-quickstart-kafka-enabled-event-hubs.md).
167
159
168
160
169
161
### Analyzing Runtime Audit logs
162
+
You can analyze the collected runtime audit logs using the following sample query.
170
163
164
+
```kusto
171
165
AzureDiagnostics
172
166
| where TimeGenerated > ago(1h)
173
-
| where ResourceProvider =="MICROSOFT.EVENTHUB"
167
+
| where ResourceProvider =="MICROSOFT.EVENTHUB"
174
168
| where Category == "RuntimeAuditLogs"
175
-
176
-
177
-
Azure Event Hubs
169
+
```
170
+
Up on the execution of the query you should be able to obtain corresponding audit logs in the following format.
178
171

179
172
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).
180
174
181
175
182
176
### Analyzing Application metrics
183
-
Application metrics logs capture the aggregated information on certain metrics related to data plane operations. The captured information includes the following runtime metrics.
184
-
177
+
You can analyze the collected application metrics logs using the following sample query.
185
178
179
+
```kusto
186
180
AzureDiagnostics
187
181
| where TimeGenerated > ago(1h)
188
182
| where Category == "ApplicationMetricsLogs"
189
-
183
+
```
184
+
Application metrics includes the following runtime metrics.
190
185

191
186
187
+
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).
192
188
193
189
194
-
195
-
resources:
196
-
197
-
+ Get errors fro
198
-
199
-
200
-
201
-
df
202
-
203
-
204
-
205
-
206
190
## Alerts
207
191
You can access alerts for Azure Event Hubs by selecting **Alerts** from the **Azure Monitor** section on the home page for your Event Hubs namespace. See [Create, view, and manage metric alerts using Azure Monitor](../azure-monitor/alerts/alerts-metric.md) for details on creating alerts.
0 commit comments