Archive audit data to OSS
This topic describes how to archive audit data from a Bastionhost V3.1 instance to OSS.
Background
Archiving audit data from Bastionhost transfers all audit data, including session replay videos, event query data, session data, and operation logs, to OSS. OSS charges for the storage used. For more information, see OSS billing overview.
Limitations
Your Bastionhost instance must be V3.1.21 or later.
Prerequisites
-
You have granted a RAM user the
AliyunOSSFullAccessandAliyunYundunBastionHostFullAccesspermissions. For more information about how to grant permissions, see Manage RAM user permissions. -
You have logged on to the OSS console and created a bucket. The bucket must be in the same region as your Bastionhost instance. For more information, see Create buckets.
Procedure
Log on to the Bastionhost console. In the top navigation bar, select the region where your Bastionhost instance is located.
-
In the instance list, find the target instance and click Archive Audit Data.
-
Optional: If your instance is earlier than V3.1.21, click Upgrade Now. In the dialog box that appears, confirm the information and click Confirm Upgrade.
-
In the Archive Audit Data panel, select a destination bucket and a time range for archiving, and then click Create Archive Task.
You can view the task status in the Archive Task Records section. The time required depends on the amount of data.
After the task is complete, you can log on to the OSS console to view and download the archived data.
The archived data is stored in a directory named
bastionhost-audit-export/. Subdirectories are created under this directory for each task ID. Each subdirectory contains a Raw Video Files folder and the following audit data files:exec_data.xlsx,event_query.xlsx,session_data.xlsx,video_file_summary.xlsx, andoperation_logs.xlsx.Important-
After you select a destination bucket, Bastionhost automatically generates an archive directory in the bucket. You cannot customize the directory name.
-
Do not delete the archive directory in the destination bucket during an archive task. Otherwise, the task will fail.
-
Running a data archive task during peak business hours might affect your services. To avoid service interruptions, schedule the task for off-peak hours.
-
To play the session replay videos, download the offline player. For more information, see Download the offline player and Adobe AIR.
-