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/communication-services/concepts/logging-and-diagnostics.md
+39-15Lines changed: 39 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,11 +22,11 @@ Azure Communication Services offers logging capabilities that you can use to mon
22
22
23
23
## Enable diagnostic logs in your resource
24
24
25
-
Logging is turned off by default when a resource is created. To enable logging, navigate to the **Diagnostic settings**blade in the resource menu under the **Monitoring** section. Then click on**Add diagnostic setting**.
25
+
Logging is turned off by default when a resource is created. To enable logging, navigate to the **Diagnostic settings**tab in the resource menu under the **Monitoring** section. Then select**Add diagnostic setting**.
26
26
27
27
Next, select the archive target you want. Currently, we support storage accounts and Log Analytics as archive targets. After selecting the types of logs that you'd like to capture, save the diagnostic settings.
28
28
29
-
New settings take effect in about ten minutes. Logs will begin appearing in the configured archival target within the Logs pane of your Communication Services resource.
29
+
New settings take effect in about 10 minutes. Logs will begin appearing in the configured archival target within the Logs pane of your Communication Services resource.
30
30
31
31
:::image type="content" source="./media/diagnostic-settings.png" alt-text="Azure Communication Services Diagnostic Settings Options.":::
32
32
@@ -44,14 +44,15 @@ Communication Services offers the following types of logs that you can enable:
44
44
***Email Send Mail operational logs** - provides detailed information related to the Email service send mail requests.
45
45
***Email Status Update operational logs** - provides message and recipient level delivery status updates related to the Email service send mail requests.
46
46
***Email User Engagement operational logs** - provides information related to 'open' and 'click' user engagement metrics for messages sent from the Email service.
47
+
***Call Automation operational logs** - provides operational information on Call Automation API requests. These logs can be used to identify failure points, query all requests made in a call (using Correlation ID or Server Call ID) or query all requests made by a specific service application in the call (using Participant ID).
47
48
48
49
### Usage logs schema
49
50
50
51
| Property | Description |
51
52
| -------- | ---------------|
52
53
| Timestamp | The timestamp (UTC) of when the log was generated. |
53
54
| Operation Name | The operation associated with log record. |
54
-
| Operation Version | The `api-version` associated with the operation, if the operationName was performed using an API. If there is no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
55
+
| Operation Version | The `api-version` associated with the operation, if the operationName was performed using an API. If there's no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
55
56
| Category | The log category of the event. Category is the granularity at which you can enable or disable logs on a particular resource. The properties that appear within the properties blob of an event are the same within a particular log category and resource type. |
56
57
| Correlation ID | The ID for correlated events. Can be used to identify correlated events between multiple tables. |
57
58
| Properties | Other data applicable to various modes of Communication Services. |
@@ -67,7 +68,7 @@ Communication Services offers the following types of logs that you can enable:
67
68
| TimeGenerated | The timestamp (UTC) of when the log was generated. |
68
69
| OperationName | The operation associated with log record. |
69
70
| CorrelationID | The ID for correlated events. Can be used to identify correlated events between multiple tables. |
70
-
| OperationVersion | The api-version associated with the operation, if the operationName was performed using an API. If there is no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
71
+
| OperationVersion | The api-version associated with the operation, if the operationName was performed using an API. If there's no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
71
72
| Category | The log category of the event. Category is the granularity at which you can enable or disable logs on a particular resource. The properties that appear within the properties blob of an event are the same within a particular log category and resource type. |
72
73
| ResultType | The status of the operation. |
73
74
| ResultSignature | The sub status of the operation. If this operation corresponds to a REST API call, this field is the HTTP status code of the corresponding REST call. |
@@ -89,7 +90,7 @@ Communication Services offers the following types of logs that you can enable:
89
90
| TimeGenerated | The timestamp (UTC) of when the log was generated. |
90
91
| OperationName | The operation associated with log record. |
91
92
| CorrelationID | The ID for correlated events. Can be used to identify correlated events between multiple tables. |
92
-
| OperationVersion | The api-version associated with the operation, if the operationName was performed using an API. If there is no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
93
+
| OperationVersion | The api-version associated with the operation, if the operationName was performed using an API. If there's no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
93
94
| Category | The log category of the event. Category is the granularity at which you can enable or disable logs on a particular resource. The properties that appear within the properties blob of an event are the same within a particular log category and resource type. |
94
95
| ResultType | The status of the operation. |
95
96
| ResultSignature | The sub status of the operation. If this operation corresponds to a REST API call, this field is the HTTP status code of the corresponding REST call. |
@@ -114,7 +115,7 @@ Communication Services offers the following types of logs that you can enable:
114
115
| TimeGenerated | The timestamp (UTC) of when the log was generated. |
115
116
| OperationName | The operation associated with log record. |
116
117
| CorrelationID | The ID for correlated events. Can be used to identify correlated events between multiple tables. |
117
-
| OperationVersion | The `api-version` associated with the operation, if the `operationName` was performed using an API. If there is no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
118
+
| OperationVersion | The `api-version` associated with the operation, if the `operationName` was performed using an API. If there's no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
118
119
| Category | The log category of the event. Category is the granularity at which you can enable or disable logs on a particular resource. The properties that appear within the properties blob of an event are the same within a particular log category and resource type. |
119
120
| ResultType | The status of the operation. |
120
121
| ResultSignature | The sub-status of the operation. If this operation corresponds to a REST API call, this field is the HTTP status code of the corresponding REST call. |
@@ -134,17 +135,17 @@ Communication Services offers the following types of logs that you can enable:
134
135
| TimeGenerated | The timestamp (UTC) of when the log was generated. |
135
136
| OperationName | The operation associated with log record. |
136
137
| CorrelationId | The ID for correlated events. Can be used to identify correlated events between multiple tables. |
137
-
| OperationVersion | The API-version associated with the operation or version of the operation (if there is no API version). |
138
+
| OperationVersion | The API-version associated with the operation or version of the operation (if there's no API version). |
138
139
| Category | The log category of the event. Logs with the same log category and resource type will have the same properties fields. |
139
-
| ResultType | The status of the operation (e.g. Succeeded or Failed). |
140
+
| ResultType | The status of the operation (for example, Succeeded or Failed). |
140
141
| ResultSignature | The sub status of the operation. If this operation corresponds to a REST API call, this field is the HTTP status code of the corresponding REST call. |
141
142
| DurationMs | The duration of the operation in milliseconds. |
142
143
| Level | The severity level of the operation. |
143
144
| URI | The URI of the request. |
144
145
| Identity | The request sender's identity, if provided. |
145
146
| SdkType | The SDK type being used in the request. |
146
147
| PlatformType | The platform type being used in the request. |
147
-
| RouteType | The routing methodology to where the ICE server will be located from the client (e.g. Any or Nearest). |
148
+
| RouteType | The routing methodology to where the ICE server will be located from the client (for example, Any or Nearest). |
148
149
149
150
150
151
### Email Send Mail operational logs
@@ -154,9 +155,9 @@ Communication Services offers the following types of logs that you can enable:
154
155
| TimeGenerated | The timestamp (UTC) of when the log was generated. |
155
156
| Location | The region where the operation was processed. |
156
157
| OperationName | The operation associated with log record. |
157
-
| OperationVersion | The `api-version` associated with the operation, if the `operationName` was performed using an API. If there is no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
158
+
| OperationVersion | The `api-version` associated with the operation, if the `operationName` was performed using an API. If there's no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
158
159
| Category | The log category of the event. Category is the granularity at which you can enable or disable logs on a particular resource. The properties that appear within the properties blob of an event are the same within a particular log category and resource type. |
159
-
| CorrelationID | The ID for correlated events. Can be used to identify correlated events between multiple tables. For all Email operational logs, the CorrelationId is mapped to the MessageId which is returned from a successful SendMail request. |
160
+
| CorrelationID | The ID for correlated events. Can be used to identify correlated events between multiple tables. For all Email operational logs, the CorrelationId is mapped to the MessageId, which is returned from a successful SendMail request. |
160
161
| Size | Represents the total size in megabytes of the email body, subject, headers and attachments. |
161
162
| ToRecipientsCount | The total # of unique email addresses on the To line. |
162
163
| CcRecipientsCount | The total # of unique email addresses on the Cc line. |
@@ -172,9 +173,9 @@ Communication Services offers the following types of logs that you can enable:
172
173
| TimeGenerated | The timestamp (UTC) of when the log was generated. |
173
174
| Location | The region where the operation was processed. |
174
175
| OperationName | The operation associated with log record. |
175
-
| OperationVersion | The `api-version` associated with the operation, if the `operationName` was performed using an API. If there is no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
176
+
| OperationVersion | The `api-version` associated with the operation, if the `operationName` was performed using an API. If there's no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
176
177
| Category | The log category of the event. Category is the granularity at which you can enable or disable logs on a particular resource. The properties that appear within the properties blob of an event are the same within a particular log category and resource type. |
177
-
| CorrelationID | The ID for correlated events. Can be used to identify correlated events between multiple tables. For all Email operational logs, the CorrelationId is mapped to the MessageId which is returned from a successful SendMail request. |
178
+
| CorrelationID | The ID for correlated events. Can be used to identify correlated events between multiple tables. For all Email operational logs, the CorrelationId is mapped to the MessageId, which is returned from a successful SendMail request. |
178
179
| RecipientId | The email address for the targeted recipient. If this is a message-level event, the property will be empty. |
179
180
| DeliveryStatus | The terminal status of the message. |
180
181
@@ -185,10 +186,33 @@ Communication Services offers the following types of logs that you can enable:
185
186
| TimeGenerated | The timestamp (UTC) of when the log was generated. |
186
187
| Location | The region where the operation was processed. |
187
188
| OperationName | The operation associated with log record. |
188
-
| OperationVersion | The `api-version` associated with the operation, if the `operationName` was performed using an API. If there is no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
189
+
| OperationVersion | The `api-version` associated with the operation, if the `operationName` was performed using an API. If there's no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
189
190
| Category | The log category of the event. Category is the granularity at which you can enable or disable logs on a particular resource. The properties that appear within the properties blob of an event are the same within a particular log category and resource type. |
190
-
| CorrelationID | The ID for correlated events. Can be used to identify correlated events between multiple tables. For all Email operational logs, the CorrelationId is mapped to the MessageId which is returned from a successful SendMail request. |
191
+
| CorrelationID | The ID for correlated events. Can be used to identify correlated events between multiple tables. For all Email operational logs, the CorrelationId is mapped to the MessageId, which is returned from a successful SendMail request. |
191
192
| RecipientId | The email address for the targeted recipient. If this is a message-level event, the property will be empty. |
192
193
| EngagementType | The type of user engagement being tracked. |
193
194
| EngagementContext | The context represents what the user interacted with. |
194
195
| UserAgent | The user agent string from the client. |
196
+
197
+
198
+
### Call Automation operational logs
199
+
200
+
| Property | Description |
201
+
| -------- | ---------------|
202
+
| TimeGenerated | The timestamp (UTC) of when the log was generated. |
203
+
| OperationName | The operation associated with log record. |
204
+
| CorrelationID | The identifier to identify a call and correlate events for a unique call. |
205
+
| OperationVersion | The `api-version` associated with the operation, if the `operationName` was performed using an API. If there's no API that corresponds to this operation, the version represents the version of that operation in case the properties associated with the operation change in the future. |
206
+
| Category | The log category of the event. Category is the granularity at which you can enable or disable logs on a particular resource. The properties that appear within the properties blob of an event are the same within a particular log category and resource type. |
207
+
| ResultType | The status of the operation. |
208
+
| ResultSignature | The sub status of the operation. If this operation corresponds to a REST API call, this field is the HTTP status code of the corresponding REST call. |
209
+
| DurationMs | The duration of the operation in milliseconds. |
210
+
| CallerIpAddress | The caller IP address, if the operation corresponds to an API call that would come from an entity with a publicly available IP address. |
211
+
| Level | The severity level of the event. |
212
+
| URI | The URI of the request. |
213
+
| CallConnectionId | ID representing the call connection, if available. This ID is different for each participant and is used to identify their connection to the call. |
214
+
| ServerCallId | A unique ID to identify a call. |
215
+
| SDKVersion | SDK version used for the request. |
216
+
| SDKType | The SDK type used for the request. |
217
+
| ParticipantId | ID to identify the call participant that made the request. |
218
+
| SubOperationName | Used to identify the sub type of media operation (play, recognize) |
0 commit comments