Bastionhost lets you archive session audit recordings and operation logs to Object Storage Service (OSS) for data backup. This topic describes how to configure data archiving.
Data export and billing
When you archive audit data in Bastionhost, the audit data within the archiving time range, including recording files and session list files, is exported to OSS. OSS charges fees based on the volume of exported data. For pricing information, see OSS billing.
-
Alibaba Gov Cloud and Alibaba Finance Cloud do not yet support exporting session recordings to OSS.
-
After you download the offline player, you can play the exported recording files locally. You cannot import the recording files into a Bastionhost instance for viewing. For more information, see Download the offline player.
Prerequisites
-
If you use a Resource Access Management (RAM) user to configure data archiving, make sure that your Alibaba Cloud account has granted the RAM user the AliyunOSSReadOnlyAccess and AliyunYundunBastionHostFullAccess permissions. AliyunOSSReadOnlyAccess provides read-only access to OSS, and AliyunYundunBastionHostFullAccess provides permissions to manage Bastionhost. For instructions, see Grant permissions to a RAM user.
-
You have created a bucket by logging on to the OSS console, and the bucket resides in the same region as your Bastionhost instance. For instructions, see Create a bucket.
Procedure
Archiving tasks run serially. You cannot create a new task while a task in the task records is waiting to run or is running.
Log on to the Bastionhost console. In the top navigation bar, select the region where your Bastionhost instance is located.
In the list of Bastionhost instances, find the target instance and click Manage.
-
In the left-side navigation pane, choose System Settings > Data Management.
-
On the Data Archive tab, configure the archiving settings described in the following table.
Configuration item
Description
Archive Path Configuration
Bucket Region
The region of the destination bucket to which data is archived. By default, data is archived to the region where your Bastionhost instance resides. This setting cannot be changed.
Select an archive bucket.
Select the destination bucket to which you want to archive data.
Archiving Directory
A file directory is automatically generated in the selected bucket.
Auto-Archive Settings
Periodic Auto-Archiving
After this feature is enabled, the system automatically archives unarchived data in Bastionhost to OSS daily, within the specified execution time range.
Auto-Archive Time Window
The time range during which the automatic archiving task runs each day.
WarningIf the data archiving task runs during peak business hours, it may affect your business operations. Schedule the execution time to avoid peak business hours.
Archive Content
Session Recording
Archive session recordings
Operation Logs
Archive operation logs
Operation Log Archive Language
The language in which operation logs are archived to OSS.
Export Recordings
Select Archiving Time Range
The time range of the session recordings to archive. A single task can archive recordings from up to the previous six months.
The archiving range is based on the start time of historical sessions. Sessions that have not ended are not archived.Start Time
The time when the data archiving task starts.
NoteAutomatic archiving does not re-archive data that is already archived. If you need to save archived data again, use the Export Recordings feature.
Next steps
Offline player
You can use the offline player to play the recording files that are archived to OSS. Follow these steps:
-
In the upper-right corner of the Data Management page, click Download Offline Player and download the installation package for your local operating system.
-
After the installation is complete, click Import Audit Directory and select the recording folder that you downloaded from OSS.
NoteYou must download the audit files from OSS to your local computer.
-
After the import is complete, a session list is automatically generated. Select the session record that you want to view and play the audit recording.