SLS Logstore Index Binding¶
- Navigate to Logs > Index page, select "Bind External Index".
-
Choose SLS Logstore. Two authorization methods are supported:
-
Perform the corresponding account authorization.
- Perform the corresponding resource authorization.
- Complete field mapping.
- Fill in the required information. After filling, you can click Test to verify the correctness of the username and password.
RAM Sub-account Authorization¶
Account Authorization¶
- Obtain SLS Authorization File.
- Fill in AccessKey ID / AccessKey Secret (referred to as AK/AKS).
Resource Authorization¶
- Select the region.
- Based on the AK/AKS filled above, Guance automatically retrieves the Project and Logstore.
- Guance Index: By default, it is consistent with the Logstore name. You can also customize the name (❗️ This index name is unrelated to SLS and is used for your subsequent data filtering in Guance).
- Access Type: To avoid configuration path errors leading to failure in data retrieval, choose Intranet Access or Public Network Access based on the actual situation.
- Optionally enter an index description.
Field Mapping¶
Configure Field Mapping.
After configuration, click Confirm to complete the index binding. You can view it by switching indexes in the Explorer.
Index Binding for Different Plans
- If you are a Guance Commercial Plan user, you can refer to 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 from when you activated the Exclusive Plan for index binding. For information on activating the Exclusive Plan, refer to Activating Guance Exclusive Plan via Alibaba Cloud Marketplace.
- If you are a Guance Exclusive Plan user and wish to bind SLS log indexes under another Alibaba Cloud account, refer to RAM Account Authorization to obtain AK/AKS for index binding.
Third-party Quick Authorization¶
Note
Hong Kong, China and global sites do not support this authorization method.
Account Authorization¶
- Click "Go Now" to jump to Alibaba Cloud, log in, and perform the authorization operation.
- Click Agree to Authorize, a Service Provider UID Verification window will pop up.
- Click Service Provider Permission Description Page to view how to obtain the UID.
- Enter the UID and click OK, you will be automatically redirected to Alibaba Cloud Marketplace > Purchased Services.
- The authorization is now complete.
Resource Authorization¶
- After account authorization is complete, fill in your Alibaba Cloud Account ID. After filling, Guance will automatically retrieve the Project and Logstore.
- Guance Index: By default, it is consistent with the Logstore name. You can also customize the name (❗️ This index name is unrelated to SLS and is used for your subsequent data filtering in Guance).
- Access Type: To avoid configuration path errors leading to failure in data retrieval, choose Intranet Access or Public Network Access based on the actual situation.
Field Mapping¶
Configure Field Mapping.
After configuration, click Confirm to complete the index binding. You can view it by switching indexes in the Explorer.
Note
- Cross-account role authorization operations require using an Alibaba Cloud primary account or a sub-account granted RAM access control permissions: GetRole, GetPolicy, CreatePolicy, CreatePolicyVersion, CreateRole, UpdateRole, AttachPolicyToRole.
- During the verification process, if a delegated sub-account is being verified, the system will automatically locate the primary account to which the sub-account belongs and pull the Projects and Logstores under that primary account.


