Security Server’s business log is stored in the message log database which contains all the messages processed by the Security Server. Each message is time-stamped and signed which makes it possible to verify the message content afterwards. By default, time-stamped messages are archived from the database to disk every six hours. Time-stamped and archived messages are kept in the message log database for 30 days until they are removed automatically.

More information about the message log can be found at: https://github.com/ria-ee/X-Road/blob/develop/doc/Manuals/ug-ss_x-road_6_security_server_user_guide.md#11-message-log

The archived log records are not automatically transferred to an external host or log storage for long-term archiving purposes. It is the administrator’s responsibility to configure the transfer of the logs to a long-term storage.

Long-term Archival

Google Cloud Storage can be used as a long-term storage for the Security Server logs. Google Cloud Storage is unified object storage to store data in Google's cloud. Google Cloud Storage always encrypts data both in transit and at rest. For additional security, customer-managed or customer-supplied encryption key can be used to encrypt data at rest.

More information about the Google Cloud Storage can be found at: https://cloud.google.com/storage/

To store and transfer the archived message log records in a Cloud Storage bucket, follow the steps below.

The below script is just an example and therefore, it is not recommended to use it for production purposes.


#!/bin/bash

/snap/bin/gsutil mv /var/lib/xroad/*.zip gs://<MY_BUCKET>/<SECURITY_SERVER_CODE> >/dev/null 2>&1

exit 0
[message-log]
archive-transfer-command=/usr/share/xroad/scripts/archive-logs.sh


These instructions can be used to transfer archived log records to Google Cloud Storage from Security Servers hosted on Google Cloud, any other cloud or on-premise. In case, the Security Server is hosted on another cloud or on-premise, service account keys must be used to make authenticated Google Cloud API calls.


Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.



Related issues