Creating a Tracker

Scenario

You can create data trackers to record operations on data.

There are two types of trackers: management trackers and data trackers. Management trackers are used to record management traces, which are logs of operations on all cloud resources, such as creation, login, and deletion. Data trackers are used to record data traces, which are logs of operations on data, such as upload and download.

After you have enabled CTS, a management tracker is created automatically. Only one management tracker can be created and it cannot be deleted. Therefore, you can create only data trackers.

If you want to track operations on Object Storage Service (OBS) buckets, ensure that you create a data tracker in a project instead of a sub-project. Otherwise, tracking fails because there are no sub-projects in OBS.

Procedure

  1. If you log in to HUAWEI CLOUD as an account administrator, go to 2 directly. If you log in to HUAWEI CLOUD as an IAM user, first contact your account administrator (account owner, a user in the admin user group, or a user who has been granted the Security Administrator permissions) to obtain the following permissions:
    1. Security Administrator
    2. CTS FullAccess

    For details, see Assigning Permissions to an IAM User.

  2. Click in the upper left corner and choose Management & Governance > Cloud Trace Service. The CTS authorization page is displayed.

  3. Click Enable and Authorize.
    1. After you enable CTS, two trackers are automatically created to record management traces, which are operations (such as creation, login, and deletion) performed on all cloud resources.
    • In the current region, a tracker is created to record management traces of all project-level services deployed in this region.
    • In the CN North-Beijing4 region, a tracker is created to record management traces of all global services, such as IAM.
  4. Choose Tracker List in the navigation pane on the left.
  5. Click Create Tracker in the upper right corner of the page.
  6. Specify parameters on the Create Tracker page.
    • Basic Information
      • Tracker Type: Only Data can be selected.
      • Tracker Name: Name of the tracker. Specify a name easy to identify.
      • OBS Bucket: Select an OBS bucket to track.
      • Operation: Select the data operations to record.
      • Trace Analysis: You can enable this function to synchronize traces to Log Tank Service (LTS).
      • Trace Analysis Path: N/A.
    • Transfer to OBS
      • Transfer Trace to OBS

        If you select Yes, select an existing OBS bucket or create a new one directly on this page, and set File Prefix.

        If you select No, you do not need to configure the following parameters.

      • Create OBS Bucket: If this function is enabled, an OBS bucket will be created automatically with the name you enter. If the function is disabled, select an existing OBS bucket.
      • OBS Bucket: Select an existing OBS bucket or create an OBS bucket for trace transfer.
      • Retention Period: Select the duration for storing traces in the OBS bucket.
      • File Prefix: The prefix is used to mark a transferred trace file. Your specified prefix will be automatically added to the beginning of the name of a transferred file, helping you quickly filter files.
      • Verify Trace File: When this function is enabled, integrity verification will be performed to check whether trace files in OBS buckets have been tampered with. For details about file integrity verification, see Verifying Trace File Integrity.
  7. Click OK.