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/healthcare-apis/dicom/enable-diagnostic-logging.md
+63-11Lines changed: 63 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,13 @@ ms.date: 03/02/2022
9
9
ms.author: mmitrik
10
10
---
11
11
12
-
# Enable Diagnostic Logging in the DICOM service
12
+
# Enable audit and diagnostic logging in the DICOM service
13
13
14
14
In this article, you'll learn how to enable diagnostic logging in DICOM service and be able to review some sample queries for these logs. Access to diagnostic logs is essential for any healthcare service where compliance with regulatory requirements is a must. The feature in DICOM service enables diagnostic logs is the [Diagnostic settings](../../azure-monitor/essentials/diagnostic-settings.md) in the Azure portal.
15
15
16
-
## Enable audit logs
16
+
## Enable logs
17
17
18
-
1. To enable diagnostic logging DICOM service, select your DICOM service in the Azure portal.
18
+
1. To enable logging DICOM service, select your DICOM service in the Azure portal.
19
19
2. Select the **Activity log** blade, and then select **Diagnostic settings**.
20
20
21
21
[](media/dicom-activity-log.png#lightbox)
@@ -45,30 +45,82 @@ In this article, you'll learn how to enable diagnostic logging in DICOM service
45
45
46
46
For information on how to work with diagnostic logs, see [Azure Resource Log documentation](../../azure-monitor/essentials/platform-logs-overview.md)
47
47
48
-
## Audit log details
48
+
## Log details
49
+
The log schema used differs based on the destination. Log Analytics has a schema that will differ from other destinations. Each log type will also have a schema that differs.
49
50
50
-
The DICOM service returns the following fields in the audit log:
51
+
### Audit log details
52
+
53
+
#### Raw logs
54
+
55
+
The DICOM service returns the following fields in the audit log as seen when streamed outside of Log Analytics:
51
56
52
57
|Field Name |Type |Notes |
53
58
|---------|---------|---------|
54
59
|correlationId|String|Correlation ID
55
-
|category|String|Log Category (We currently have 'AuditLogs')
56
60
|operationName|String|Describes the type of operation (for example, Retrieve, Store, Query, etc.)
57
61
|time|DateTime|Date and time of the event.
58
62
|resourceId|String| Azure path to the resource.
59
63
|identity|Dynamic|A generic property bag containing identity information (currently doesn't apply to DICOM).
60
-
|callerIpAddress|String|The caller's IP address.
61
-
|Location|String|The location of the server that processed the request.
64
+
|location|String|The location of the server that processed the request.
62
65
|uri|String|The request URI.
63
66
|resultType|String| The available values currently are Started, Succeeded, or Failed.
64
67
|resultSignature|Int|The HTTP Status Code (for example, 200)
65
-
|properties|String|Describes the properties including resource type, resource name, subscription ID, audit action, etc.
66
68
|type|String|Type of log (it's always MicrosoftHealthcareApisAuditLog in this case).
69
+
|level|String|Log level (Informational, Error).
70
+
71
+
72
+
#### Log Analytics logs
73
+
74
+
The DICOM service returns the following fields in the audit log in Log Analytics:
75
+
76
+
|Field Name |Type |Notes |
77
+
|---------|---------|---------|
78
+
|CorrelationId|String|Correlation ID
79
+
|OperationName|String|Describes the type of operation (for example, Retrieve, Store, Query, etc.)
80
+
|TimeGenerated [UTC]|DateTime|Date and time of the event.
81
+
|_ResourceId|String| Azure path to the resource.
82
+
|Identity|Dynamic|A generic property bag containing identity information (currently doesn't apply to DICOM).
83
+
|Uri|String|The request URI.
84
+
|ResultType|String| The available values currently are Started, Succeeded, or Failed.
85
+
|StatusCode|Int|The HTTP Status Code (for example, 200)
86
+
|Type|String|Type of log (it's always AHDSDicomAuditLogs in this case).
67
87
|Level|String|Log level (Informational, Error).
68
-
|operationVersion|String| Currently empty. Will be utilized to show api version.
88
+
|TenantId|String| Tenant ID.
89
+
90
+
91
+
### Diagnostic log details
92
+
93
+
#### Raw logs
94
+
95
+
The DICOM service returns the following fields in the audit log as seen when streamed outside of Log Analytics:
69
96
97
+
|Field Name |Type |Notes |
98
+
|---------|---------|---------|
99
+
|correlationId|String|Correlation ID
100
+
|operationName|String|Describes the type of operation (for example, Retrieve, Store, Query, etc.)
101
+
|time|DateTime|Date and time of the event.
102
+
|resultDescription|String|Description of the log entry. An example here is a diagnostic log with a validation warning message when storing a file.
103
+
|resourceId|String| Azure path to the resource.
104
+
|identity|Dynamic|A generic property bag containing identity information (currently doesn't apply to DICOM).
105
+
|location|String|The location of the server that processed the request.
106
+
|properties|String|Additional information about the event in JSON array format. Examples include DICOM identifiers present in the request.
107
+
|level|String|Log level (Informational, Error).
108
+
109
+
#### Log Analytics logs
110
+
111
+
The DICOM service returns the following fields in the audit log in Log Analytics:
112
+
113
+
|Field Name |Type |Notes |
114
+
|---------|---------|---------|
115
+
|CorrelationId|String|Correlation ID
116
+
|OperationName|String|Describes the type of operation (for example, Retrieve, Store, Query, etc.)
117
+
|TimeGenerated|DateTime|Date and time of the event.
118
+
|Message|String|Description of the log entry. An example here is a diagnostic log with a validation warning message when storing a file.
119
+
|Location|String|The location of the server that processed the request.
120
+
|Properties|String|Additional information about the event in JSON array format. Examples include DICOM identifiers present in the request.
0 commit comments