Skip to content

SLS Logstore Index Binding

Select SLS Logstore. TrueWatch supports two authorization methods: RAM Sub-account Authorization and Third-party Quick Authorization:

RAM Sub-account Authorization

Account Authorization:

  1. Obtain SLS Authorization File.
  2. Fill in AccessKey ID / AccessKey Secret (referred to as AK / AKS).

Resource Authorization:

  1. Select the region;
  2. Based on the AK / AKS filled above, TrueWatch automatically retrieves Project and Logstore.
  3. TrueWatch Index: By default, it matches the name of the Logstore, but you can also customize the name.
    • Note: This index name is unrelated to SLS and is used for data filtering in TrueWatch later.
  4. Access Type: To avoid configuration path errors and data retrieval issues, you can choose Internal Network Access or Public Network Access based on the actual situation.

Field Mapping.

Click Confirm to complete the index binding. You can view it in the Explorer by switching the index.

For Commercial Plan and Exclusive Plan
  • If you are a TrueWatch Commercial Plan user, you can refer to the document RAM Account Authorization to obtain AK / AKS for index binding;
  • If you are a TrueWatch Exclusive Plan user, you can directly use the AK / AKS from the Exclusive Plan activation for index binding. For how to activate the Exclusive Plan, refer to Activate TrueWatch Exclusive Plan on Alibaba Cloud Market;
  • If you are a TrueWatch Exclusive Plan user and wish to bind SLS log indexes under other Alibaba Cloud accounts, refer to RAM Account Authorization to obtain AK / AKS for index binding.

Third-party Quick Authorization

Note: This feature is not supported in Hong Kong and international sites.

Account Authorization:

Click Go Now to jump to Alibaba Cloud, log in, and perform the authorization operation.

Click Agree to Authorize, and a Vendor UID Verification window will pop up. You can view the UID by clicking the Vendor Permission Description Page. After entering the UID, click Confirm, and you will be automatically redirected to Alibaba Cloud Market > Purchased Services, where the authorization is completed.

Resource Authorization:

  1. After authorization, fill in your Alibaba Cloud account ID. TrueWatch will automatically retrieve Project and Logstore.

  2. TrueWatch Index: By default, it matches the name of the Logstore, but you can also customize the name.

    • Note: This index name is unrelated to SLS and is used for data filtering in TrueWatch later.
  3. Access Type: To avoid configuration path errors and data retrieval issues, you can choose Internal Network Access or Public Network Access based on the actual situation.

Field Mapping.

Click Confirm to complete the index binding. You can view it in the Explorer by switching the index.

Note
  1. Cross-account role authorization requires the use of an Alibaba Cloud main account or a sub-account with RAM access control permissions such as GetRole, GetPolicy, CreatePolicy, CreatePolicyVersion, CreateRole, UpdateRole, AttachPolicyToRole;

  2. During the verification process, if a sub-account is being verified, it will automatically locate the main account to which the sub-account belongs and retrieve the Project and Logstore under the main account.

Further Reading