Unlock the Power of AI

1 million free tokens

88% Price Reduction

NaNDayNaN:NaN:NaN
Activate Now

Enable the log collection feature

Updated at: 2024-12-10 08:08

CloudLens for EBS offers both manual and automated data collection capabilities. Manual data collection can be performed either on a single disk or across all current disks, while automated data collection allows you to define conditions for automatic data gathering from qualifying disks, including future creations. This topic outlines the steps to activate data collection and associated operations.

Important

The CloudLens for EBS feature is available only for the users on the required whitelist. To add a user to the whitelist, submit a ticket.

Initially configure CloudLens for EBS

Important
  • The account that you use to complete the authorization must have the permissions specified by the AliyunRamFullAccess policy.

  • You only need to perform this operation once.

  1. Log on to the Log Service console.
  2. In the Log Application section, click the Cloud Service Lens tab, then click CloudLens for EBS.

  3. Enable CloudLens for EBS by following the on-screen instructions.

    During activation, Alibaba Cloud will automatically create the service-linked role AliyunServiceRolePolicyForSLSAudit and authorize CloudLens for EBS to use this role for collecting second-level monitoring data from disks. For more details, see Manage the service-linked role AliyunServiceRoleForSLSAudit.

    When you enable CloudLens for EBS, the system automatically authorizes CloudLens for EBS to assume the service-linked role AliyunServiceRolePolicyForSLSAudit. This allows CloudLens for EBS to collect logs and metrics from cloud disks. For more information, see Manage the AliyunServiceRoleForSLSAudit service-linked role.

Manually enable data collection

  1. Log on to the Log Service console.
  2. In the Log Application section, click the Cloud Service Lens tab, then click CloudLens for EBS.

  3. On the EBS disk Access tab of the Access Management page, find the disk you want and click Enable.

  4. Enable the data collection feature.

    • If you are enabling this feature for the first time, in the Set a destination logstore dialog box, select the destination region and click Confirm.

      Important

      After the destination region is selected and confirmed, it cannot be changed. Simple Log Service will create a central project and metricstore in the selected region to store second-level monitoring data from the disks.

    • If you have previously enabled this feature, in the Set a destination logstore dialog box, click Confirm.

    After the data collection feature is enabled, Simple Log Service will begin collecting second-level monitoring data from the specified disk into the central logstore (metricstore).

Configure automatic data collection

  1. Log on to the Log Service console.
  2. In the Log Application section, click the Cloud Service Lens tab, then click CloudLens for EBS.

  3. On the Automatic Collection Configurations tab of the Access Management page , click the 条件 icon.

  4. Set the collection conditions.

    In standard mode, conditions are linked with an AND relationship. Advanced mode allows for flexible combination and nesting of conditions.

    You can set collection conditions based on attributes such as region, instance ID, billing method, disk type, and tags. For example, to collect data only from disks with a subscription billing method, set the following condition:

    EBS自动采集

  5. Click the 结束 icon.

  6. Click Save in the upper-right corner of the page.

    If you are configuring the automatic data collection for the first time, the system will prompt you to select the destination region.

    Important

    After the destination region is selected and confirmed, it cannot be changed. Simple Log Service will create a central project and metricstore in the selected region to store second-level monitoring data from the disks.

    After the configuration, Simple Log Service will begin collecting second-level monitoring data from the disks (including those created in the future) into the central logstore (metricstore).

Related operations

Operation

Description

Operation

Description

Manage a disk

On the EBS Disk Access tab, click a disk to view its details and perform actions such as snapshot creation and disk release. For more information, see Disks.

Disable data collection

On the EBS Disk Access tab, click Disable for the relevant disk to disable the data collection feature.

Adjust data retention period

In the Destination Logstore tab, find the logstore you want, click the 修改保存时间 icon, and modify the Data Retention Period.

  • On this page (1, T)
  • Initially configure CloudLens for EBS
  • Manually enable data collection
  • Configure automatic data collection
  • Related operations
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare