Skip to content

Commit e9b28b8

Browse files
committed
markdown and editing updates
1 parent 4b4e086 commit e9b28b8

File tree

2 files changed

+57
-59
lines changed

2 files changed

+57
-59
lines changed

articles/healthcare-apis/azure-api-for-fhir/enable-diagnostic-logging.md

Lines changed: 31 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ ms.date: 06/03/2022
1212

1313
# Enable Diagnostic Logging in Azure API for FHIR
1414

15-
[!INCLUDE [retirement banner](../includes/healthcare-apis-azure-api-fhir-retirement.md)]
15+
[!INCLUDE[retirement banner](../includes/healthcare-apis-azure-api-fhir-retirement.md)]
1616

17-
In this article, you'll learn how to enable diagnostic logging in Azure API for FHIR 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 (such as HIPAA) is a must. The feature in Azure API for FHIR that enables diagnostic logs is the [**Diagnostic settings**](/azure/azure-monitor/essentials/diagnostic-settings) in the Azure portal.
17+
In this article, you learn how to enable diagnostic logging in Azure API for FHIR® and be able to review sample queries for these logs. Access to diagnostic logs is essential for any healthcare service where compliance with regulatory requirements (such as HIPAA) is a must. The feature in Azure API for FHIR that enables diagnostic logs is the [**Diagnostic settings**](/azure/azure-monitor/essentials/diagnostic-settings) in the Azure portal.
1818

1919
## View and Download FHIR Metrics Data
2020

21-
You can view the metrics under Monitoring | Metrics from the portal. The metrics include Number of Requests, Average Latency, Number of Errors, Data Size, RUs Used, Number of requests that exceeded capacity, and Availability (in %). The Total Request Metrics will provide the number of requests reaching the FHIR service. This means for requests such as FHIR bundles, it will be considered as single request for logging.
21+
You can view the metrics under Monitoring | Metrics from the portal. The metrics include Number of Requests, Average Latency, Number of Errors, Data Size, request units (RUs) Used, Number of requests that exceeded capacity, and Availability (in %). The Total Request Metrics provides the number of requests reaching the FHIR service. This means requests such as FHIR bundles are considered as single request for logging.
2222

23-
The screenshot below shows RUs used for a sample environment with few activities in the last seven days. You can download the data in Json format.
23+
The following screenshot shows RUs used for a sample environment with few activities in the last seven days. You can download the data in Json format.
2424

2525
:::image type="content" source="media/diagnostic-logging/fhir-metrics-rus-screen.png" alt-text="Azure API for FHIR Metrics from the portal" lightbox="media/diagnostic-logging/fhir-metrics-rus-screen.png":::
2626

@@ -36,11 +36,11 @@ The screenshot below shows RUs used for a sample environment with few activities
3636

3737
5. Select the method you want to use to access your diagnostic logs:
3838

39-
1. **Archive to a storage account** for auditing or manual inspection. The storage account you want to use needs to be already created.
39+
1. **Archive to a storage account** for auditing or manual inspection. The storage account you want to use needs to already be created.
4040
2. **Stream to event hub** for ingestion by a third-party service or custom analytic solution. You'll need to create an event hub namespace and event hub policy before you can configure this step.
41-
3. **Stream to the Log Analytics** workspace in Azure Monitor. You'll need to create your Logs Analytics Workspace before you can select this option.
41+
3. **Stream to the Log Analytics** workspace in Azure Monitor. You need to create your Logs Analytics Workspace before you can select this option.
4242

43-
6. Select **AuditLogs** and/or **AllMetrics**. The metrics include service name, availability, data size, total latency, total requests, total errors and timestamp. You can find more detail on [supported metrics](/azure/azure-monitor/essentials/metrics-supported#microsofthealthcareapisservices).
43+
6. Select **AuditLogs** and/or **AllMetrics**. The metrics include service name, availability, data size, total latency, total requests, total errors, and timestamp. Find more detail on [supported metrics](/azure/azure-monitor/essentials/metrics-supported#microsofthealthcareapisservices).
4444

4545
:::image type="content" source="media/diagnostic-logging/fhir-diagnostic-setting.png" alt-text="Azure FHIR Diagnostic Settings. Select AuditLogs and/or AllMetrics." lightbox="media/diagnostic-logging/fhir-diagnostic-setting.png":::
4646

@@ -50,62 +50,60 @@ The screenshot below shows RUs used for a sample environment with few activities
5050
> [!Note]
5151
> It might take up to 15 minutes for the first Logs to show in Log Analytics. Also, if Azure API for FHIR is moved from one resource group or subscription to another, update the setting once the move is complete.
5252
53-
For more information on how to work with diagnostic logs, please refer to the [Azure Resource Log documentation](/azure/azure-monitor/essentials/platform-logs-overview)
53+
For more information on how to work with diagnostic logs, refer to the [Azure Resource Log documentation](/azure/azure-monitor/essentials/platform-logs-overview).
5454

5555
## Audit log details
56-
At this time, the Azure API for FHIR service returns the following fields in the audit log:
56+
At this time, the Azure API for FHIR service returns the following fields in the audit log.
5757

5858
|Field Name |Type |Notes |
5959
|---------|---------|---------|
6060
|CallerIdentity|Dynamic|A generic property bag containing identity information
61-
|CallerIdentityIssuer|String|Issuer
62-
|CallerIdentityObjectId|String|Object_Id
63-
|CallerIPAddress|String|The caller’s IP address
64-
|CorrelationId|String| Correlation ID
65-
|FhirResourceType|String|The resource type for which the operation was executed
66-
|LogCategory|String|The log category (we're currently returning ‘AuditLogs’ LogCategory)
67-
|Location|String|The location of the server that processed the request (for example, South Central US)
68-
|OperationDuration|Int|The time it took to complete this request in seconds. Note : This value is always set to 0, due to a known issue
69-
|OperationName|String| Describes the type of operation (for example, update, search-type)
70-
|RequestUri|String|The request URI
71-
|ResultType|String|The available values currently are **Started**, **Succeeded**, or **Failed**
72-
|StatusCode|Int|The HTTP status code. (for example, 200)
61+
|CallerIdentityIssuer|String|Issuer |
62+
|CallerIdentityObjectId|String|Object_Id |
63+
|CallerIPAddress|String|The caller’s IP address |
64+
|CorrelationId|String| Correlation ID |
65+
|FhirResourceType|String|The resource type for which the operation was executed |
66+
|LogCategory|String|The log category (currently returning ‘AuditLogs’ LogCategory) |
67+
|Location|String|The location of the server that processed the request (for example, South Central US) |
68+
|OperationDuration|Int|The time it took to complete this request in seconds. **Note** : This value is always set to 0, due to a known issue |
69+
|OperationName|String| Describes the type of operation (for example, update, search-type) |
70+
|RequestUri|String|The request URI |
71+
|ResultType|String|The available values currently are **Started**, **Succeeded**, or **Failed** |
72+
|StatusCode|Int|The HTTP status code. (for example, 200) |
7373
|TimeGenerated|DateTime|Date and time of the event|
74-
|Properties|String| Describes the properties of the fhirResourceType
75-
|SourceSystem|String| Source System (always Azure in this case)
76-
|TenantId|String|Tenant ID
77-
|Type|String|Type of log (always MicrosoftHealthcareApisAuditLog in this case)
78-
|_ResourceId|String|Details about the resource
74+
|Properties|String| Describes the properties of the fhirResourceType |
75+
|SourceSystem|String| Source System (always Azure in this case) |
76+
|TenantId|String|Tenant ID |
77+
|Type|String|Type of log (always MicrosoftHealthcareApisAuditLog in this case) |
78+
|_ResourceId|String|Details about the resource |
7979

8080
## Sample queries
8181

8282
Here are a few basic Application Insights queries you can use to explore your log data.
8383

84-
Run this query to see the **100 most recent** logs:
84+
Run the following query to see the **100 most recent** logs.
8585

8686
```Application Insights
8787
MicrosoftHealthcareApisAuditLogs
8888
| limit 100
8989
```
9090

91-
Run this query to group operations by **FHIR Resource Type**:
91+
Run the following query to group operations by **FHIR Resource Type**.
9292

9393
```Application Insights
9494
MicrosoftHealthcareApisAuditLogs
9595
| summarize count() by FhirResourceType
9696
```
9797

98-
Run this query to get all the **failed results**
98+
Run the following query to get all the **failed results**.
9999

100100
```Application Insights
101101
MicrosoftHealthcareApisAuditLogs
102102
| where ResultType == "Failed"
103103
```
104104

105105
## Conclusion
106-
Having access to diagnostic logs is essential for monitoring a service and providing compliance reports. Azure API for FHIR allows you to do these actions through diagnostic logs.
107-
108-
FHIR is the registered trademark of HL7 and is used with the permission of HL7.
106+
Having access to diagnostic logs is essential for monitoring a service and providing compliance reports. Azure API for FHIR allows you to take these actions through diagnostic logs.
109107

110108
## Next steps
111109
In this article, you learned how to enable Audit Logs for Azure API for FHIR. For information about Azure API for FHIR configuration settings, see
@@ -129,4 +127,4 @@ In this article, you learned how to enable Audit Logs for Azure API for FHIR. Fo
129127
>[!div class="nextstepaction"]
130128
>[Configure Private Link](configure-private-link.md)
131129
132-
FHIR® is a registered trademark of [HL7](https://hl7.org/fhir/) and is used with the permission of HL7.
130+
[!INCLUDE[FHIR trademark statement](../includes/healthcare-apis-fhir-trademark.md)]

0 commit comments

Comments
 (0)