Skip to content

SLS Logstore Index Binding

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

RAM Sub-account Authorization

SLS Index

Account Authorization:

  1. Obtain the 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, Guance automatically retrieves Project and Logstore.
  3. Guance Index: By default, it matches the Logstore name, but you can also customize and edit the name.
    • Note: This index name is unrelated to SLS and is used for data filtering in Guance.
  4. Access Type: To avoid configuration path errors that could lead to data retrieval issues, choose either Internal Network Access or Public Network Access based on your actual situation.

Field Mapping.

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

For Commercial Plan and Exclusive Plan Users
  • If you are a Guance Commercial Plan user, refer to the document RAM Account Authorization to obtain AK / AKS for index binding.
  • If you are a Guance Exclusive Plan user, you can directly use the AK / AKS provided when subscribing to the Exclusive Plan for index binding. For more information on how to subscribe to the Exclusive Plan, refer to Alibaba Cloud Market Subscription of Guance Exclusive Plan.
  • If you are a Guance Exclusive Plan user and wish to bind SLS log indexes from 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 for Hong Kong and overseas regions.

SLS Index 1

Account Authorization:

Click Go Now to be redirected to Alibaba Cloud, log in, and proceed with the authorization process.

Click Agree to Authorize, which will prompt the Service Provider UID Verification window. You can obtain the UID by clicking on the Service Provider Permissions Page. After entering the UID, click Confirm, and you will be automatically redirected to Alibaba Cloud Marketplace > Purchased Services, indicating that the authorization is complete.

Resource Authorization:

  1. After completing the authorization, fill in your Alibaba Cloud account ID. Once completed, Guance will automatically retrieve Project and Logstore.

  2. Guance Index: By default, it matches the Logstore name, but you can also customize and edit the name.

    • Note: This index name is unrelated to SLS and is used for data filtering in Guance.
  3. Access Type: To avoid configuration path errors that could lead to data retrieval issues, choose either Internal Network Access or Public Network Access based on your actual situation.

Index 3

Field Mapping.

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

Note
  1. Cross-account role authorization operations require using an Alibaba Cloud main account or a sub-account authorized with RAM access control permissions such as GetRole, GetPolicy, CreatePolicy, CreatePolicyVersion, CreateRole, UpdateRole, AttachPolicyToRole.

  2. During verification, if verifying a sub-account, it will automatically redirect to the main account associated with the sub-account and pull Projects and Logstores under the main account.

Further Reading

Feedback

Is this page helpful? ×