Auditing and Logging Information
Find a list of the security events and configuration change logs that are logged by SAP Health Data Services for FHIR.
Prerequisites
-
Ensure that audit logging is configured for your subaccount. For more information, see Initial Setup.
-
Maintain personal attributes annotation. For more information, see Maintain Personal Attributes.
-
Enable security event logging by creating a BCP ticket using the component IS-HC-HDS:
-
In the Subject field, enter Enable security event log.
-
In the Description field, provide the following information:
Parameter Name
Value
SubaccountId
Copy ID from the Subaccount Details section.
ServiceInstanceId
Include the service instance ID.
-
Audit Log
The SAP Audit Log service stores audit logs representing different actions taken over your account and data. The SAP Audit Log only stores audit logs written by SAP BTP services, when you take action over your account data. For more information, see Audit Logging in the Cloud Foundry Environment.
The SAP Audit Log allows you to view the audit logs for your subaccount using the SAP Audit Log Viewer service.
SAP Audit Log Viewer Service
To view audit logs of SAP Health Data Services for FHIR, you can use the SAP Audit Log Viewer service. The SAP Audit Log Viewer service displays the audit logs for your Cloud Foundry account.
To retrieve the audit logs for your subaccount using the SAP Audit Log Viewer service, you need to have proper authorizations. For more information, see Audit Log Viewer for the Cloud Foundry Environment.
Security Event Logs
The security event logs are enabled for SAP Health Data Services for FHIR. The following table lists the security events logged by SAP Health Data Services for FHIR:
|
Event Grouping |
What Events Аre Logged |
How to Identify Related Log Events |
|
|---|---|---|---|
|
Authorization events |
Creating, updating, or deleting RolePermission, GroupPolicy, and AuthorizationMap resources. |
Entries are logged as SecurityEventAuditMessage and subcategory is [AUTHORIZATION]. Message:
|
|
|
Unauthorized access without the RolePermission. |
Entries are logged as SecurityEventAuditMessage and subcategory is [AUTHORIZATION]. Message: Invalid authorization for FHIR request and Unauthorized action, the request isn't supported by the RolePermission. |
||
|
Change in RolePermission resource (create, update, or delete). |
Entries are logged as SecurityEventAuditMessage and subcategory is [AUTHORIZATION]. Message: RolePermission created, updated, or deleted. |
||
|
Updating and deleting the security keys for encryption, decryption, and sign-in. |
Entries are logged as SecurityEventAuditMessage and subcategory is [CRYPTO_ROTATION_OF_SECURITY_KEYS]. Message: Rotated the key pair successfully. |
||
|
Instance-based authorization |
Create interaction |
Entries are logged as SecurityEventAuditMessage and subcategory is [AUTHORIZATION]. Message: Attempt to create [resourceType]. For example, Attempt to create Patient. |
|
|
Conditional create interaction |
Entries are logged as SecurityEventAuditMessage and subcategory is [AUTHORIZATION]. Message: Attempt to conditional create [resourceType] with condition [parameter=value]. For example, Attempt to conditional create Patient with condition _id=[Value]. |
||
|
Update interaction |
Entries are logged as SecurityEventAuditMessage and subcategory is [AUTHORIZATION]. Message: Attempt to update [resourceType] with logical ID [id]. For example, Attempt to update Patient with logical ID [id]. |
||
|
Conditional update interaction |
Entries are logged as SecurityEventAuditMessage and subcategory is [AUTHORIZATION]. Message: Attempt to conditional update [resoourceType] with condition [parameter=value]. For example, Attempt to conditional update Patient with condition _id=[Value]. |
||
|
Delete interaction |
Entries are logged as SecurityEventAuditMessage and subcategory is [AUTHORIZATION]. Message: Attempt to delete [resourceType]. For example, Attempt to delete Patient. |
||
|
Read interaction |
Entries are logged as SecurityEventAuditMessage and subcategory is [AUTHORIZATION]. Message: Attempt to fetch [resourceType] with logical ID [id]. For example, Attempt to fetch Patient with logical ID [id]. |
||
|
Search interaction |
Entries are logged as SecurityEventAuditMessage and subcategory is [AUTHORIZATION]. Message: Attempt to search [resourceType] with condition [parameter=value]. For example, Attempt to search Patient with condition _id=[Value]. |
||
|
Malware detected in payload during create or update interactions, or during bundle operation. Malware detected in FHIR packages. |
Entries are logged as SecurityEventAuditMessage and subcategory is [MALWARE_DETECTED]. Message: Malware detected for binary content. |
||
|
Instance events |
Generation of correlation ID to track RolePermission, GroupPolicy, and AuthorizationMap resources. |
Entries are logged as SecurityEventAuditMessage and subcategory is [GENERATE_CORRELATIONID]. Message: Generation of Correlation ID. |
|
|
Update the service instance with a new FHIR package or a new version of a FHIR package. |
Entries are logged as SecurityEventAuditMessage and subcategory is [UPDATE_SERVICE_INSTANCE]. Message: Update is success/failure for subscription id [id]. |
||
|
Tenant events |
Failure of external communication with SAP BTP services. |
Entries are logged as SecurityEventAuditMessage and subcategory is [SERVICE_TO_SERVICE_COMMUNICATION]. Message: Error invoking endpoint. |
|
|
Failure to attach signature to event payload. |
Entries are logged as SecurityEventAuditMessage and subcategory is [ZZZ_CUSTOM_EVENT]. Message: Signature creation failed. |
||
|
Failure to verify signature that comes as part of event payload. |
Entries are logged as SecurityEventAuditMessage and subcategory is [ZZZ_CUSTOM_EVENT]. Message: Signature verification failed. |
||
|
Failure to encrypt event payload. |
Entries are logged as SecurityEventAuditMessage and subcategory is [ZZZ_CUSTOM_EVENT]. Message: Encryption failed. |
||
|
Failure to decrypt event payload. |
Entries are logged as SecurityEventAuditMessage and subcategory is [ZZZ_CUSTOM_EVENT]. Message: Decryption failed. |
||
Configuration Change Log
Creation and change of configuration data need to be logged. Therefore, for review purposes or as a result of legal regulations, it may be necessary to track the changes made that resulted in change in system behaviour. When these changes are logged, you should be able to check which user made which change, the date and time, and the attributes that have changed. It's also possible to analyze errors in this way.
Configuration change logging is required to view and analyze the changes made to the configuration data. By default, the FHIR resources from SAP Health Data Services for FHIR have pre-enabled the logs, for example, BusinessConfiguration, GroupPolicy, RolePermission, and AuthorizationMap. To get before and after images of the FHIR resources, the corresponding versions are read from SAP Health Data Services for FHIR. For more information on additional enablement of configuration change log, see Maintain Personal Attributes.
Configuration change logging is applicable for the following:
-
Viewing the configuration change logs.
-
Filtering the logs based on time period.
-
Viewing the attributes that changed for a configuration.
-
Downloading logs with filter criteria.
Configuration change log for the BusinessConfiguration resource:
{
"uuid": "<UUID>",
"user": "<User>",
"time": "2022-08-24T08:29:58.587Z",
"id": "<ID>",
"object": {
"type": "BusinessConfiguration",
"id": {
"id": "<ID>",
"version": "<Version>"
}
},
"attributes": [
{
"name": "BusinessConfiguration.id"
},
{
"name": "BusinessConfiguration.code"
},
{
"name": "BusinessConfiguration.meta"
},
{
"name": "BusinessConfiguration.identifier"
},
{
"name": "BusinessConfiguration.element"
}
],
"category": "audit.configuration",
"tenant": "<Tenant>",
"customDetails": {
"action": "CREATE",
"X-Correlationid": "<X-Correlation ID>"
}
}