CSS supports log backup and search, so users can analyze logs to locate issues.
You can have cluster logs periodically backed up to OBS buckets and download log files from OBS later.
. The query result is displayed.When you search for logs, the latest 10,000 logs are matched. A maximum of 100 logs are displayed.
CSS cluster logs can be periodically backed up to specified OBS buckets.
In the displayed dialog box, OBS Bucket and IAM Agency are automatically created for log backup. You can change the default values by referring to Table 1.
If Log Backup has been enabled for the cluster, you can click the Edit icon on the right of Log Backup Configuration and modify the configuration in the displayed Edit Log Backup Configuration dialog box. For details, see Table 1.
Parameter |
Description |
Remarks |
|---|---|---|
OBS Bucket |
Select an OBS bucket from the drop-down list for storing logs. You can also click Create Bucket on the right to create an OBS bucket. |
The OBS bucket and the cluster must be in the same region. NOTE:
To grant an IAM user access to an OBS bucket, you need to grant the GetBucketStoragePolicy, GetBucketLocation, ListBucket, and ListAllMyBuckets permissions to the user. |
Backup Path |
Storage path of logs in the OBS bucket |
The backup path cannot:
|
IAM Agency |
IAM agency authorized by the current account for CSS to access or maintain data stored in OBS buckets. |
The IAM agency must meet the following requirements:
NOTE:
The agency name can contain only letters (case-sensitive), digits, underscores (_), and hyphens (-). Otherwise, the backup will fail. |
Click the icon on the right of Auto Backup to enable the auto backup function.
After the automatic backup function is enabled, set the backup start time in the Configure Auto Backup dialog box. When the scheduled time arrives, the system will back up logs automatically.
After the Automatic Snapshot Creation function is enabled, you can click the Edit icon on the right of the parameter to change the backup start time.
On the Log Backup tab page, click Back Up. In the displayed dialog box, click Yes to start backup.
If Task Status in the log backup list is Successful, the backup is successful.
After logs are successfully backed up, you can click OBS Buckets to go to the bucket list, and find the bucket that stores the log files to view log files.
Deprecation logs, run logs, index slow logs, and search slow logs are backed up for Elasticsearch and OpenSearch clusters.
Log Name |
Description |
|---|---|
clustername_deprecation.log |
Deprecation log |
clustername_index_indexing_slowlog.log |
Search slow log |
clustername_index_search_slowlog.log |
Index slow log |
clustername.log |
Elasticsearch run log |
clustername_access.log |
Access log |