Skip to content

Data Forwarding to Alibaba Cloud OSS


  1. Complete setting the rule name and filter conditions;
  2. Continue to configure the archive.

Configure

  1. For Archive Type, select Alibaba Cloud OSS, which means the matched data is saved to that object storage;
  2. Select the storage format;
  3. Select whether to use encrypted storage;
  4. Select the Access Type;
  5. Click "OK" and the archive is created successfully.
Note

If the archive type information changes, confirm that the configuration of the associated platform has been updated accordingly to avoid data write failures caused by configuration changes. The new configuration rules take effect within 5 minutes.

After enabling encrypted storage, if you need to download files and read them locally, see Decrypt Files.

Access Type

Role Authorization

  1. You need to use the External ID generated by default by TrueWatch to configure role authorization;

  2. After configuring the authorized role in the Alibaba Cloud console, fill in the archive information, including the Alibaba Cloud account ID, OSS role name, region, and Bucket name;

  3. Enter the storage path to make it easier to distinguish and locate the specific location of data forwarding later;

  4. Click "Test Connection". If the above information meets the requirements, a message indicating a successful test connection is displayed. Click OK to save the current rule.

If the test fails:

You need to confirm:

  • Whether authorization is successful
  • Whether the account ID is correct
  • Whether the bucket exists
  • Whether there is a Region mismatch

When this occurs, proceed with caution:

  • If you click to regenerate the External ID, the historical ID expires after 24 hours. Go to the Alibaba Cloud console to replace it as soon as possible;

  • Do not click Generate External ID multiple times. Proceed with caution!

Access Keys

  1. You need to configure the TrueWatch RAM policy in Alibaba Cloud. After configuration is complete, fill in the account information, including the Alibaba Cloud AK & SK, region, and Bucket name;

  2. Enter the storage path to make it easier to distinguish and locate the specific location of data forwarding later;

  3. Click "Test Connection". If the above information meets the requirements, a message indicating a successful test connection is displayed. Click OK to save the current rule.

If the test fails:

You need to confirm:

  • Whether the account ID is correct
  • Whether the AK / SK exists
  • Whether the bucket exists
  • Whether there is a Region mismatch

Account Authorization

  1. Alibaba Cloud provides cross-account authorization. You need to use the dedicated account ID of TrueWatch and follow the configuration instructions to add a cross-account access authorization policy;

  2. After configuration is complete, select a region and enter the bucket name;

  3. Enter the storage path to make it easier to distinguish and locate the specific location of data forwarding later;

  4. Click "Test Connection". If the above information meets the requirements, a message indicating a successful test connection is displayed. Click OK to save the current rule.

If the test fails:

You need to confirm:

  • Whether the account ID is correct
  • Whether the bucket exists
  • Whether there is a Region mismatch

Data Waiting Time

Data is first written to a local temporary file. When the file size reaches 256 MB or the waiting time reaches the set value, the system automatically compresses and uploads it. You can adjust the waiting time based on your actual needs, including 15 minutes, 30 minutes, and 1 hour:

  • A shorter setting results in lower downstream data latency but generates more files
  • A longer setting results in fewer files, but downstream data latency increases accordingly

Storage Path Naming Convention

  1. Create a single folder or multi-level folders. A slash (/) indicates the creation of a multi-level folder.
  2. Folder names cannot start or end with a slash (/).
  3. Folder names cannot contain two or more consecutive slashes (/).
  4. Applies to all access types.
Note
  • If the entered folder does not exist, the system creates it directly, and data is still stored under that path
  • Change the storage path with caution. Because updating the configuration takes about 5 minutes, some data may still be forwarded to the original directory after the change

Next Steps

Continue to configure the data viewing permissions under the current forwarding rule.