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¶
Account Authorization:
- Get SLS Authorization File.
- Enter AccessKey ID / AccessKey Secret (shortened as AK / AKS).
Resource Authorization:
- Select the region;
- Based on the AK / AKS filled above, Guance automatically retrieves Project and Logstore.
- Guance Index: By default, it remains consistent with 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 later.
- Access Type: To avoid configuration path errors that may result in no data being retrieved, choose either Internal Network Access or Public Network Access based on actual conditions.
Click Confirm, and the index binding will be completed. You can switch indexes in the Explorer to view.
For Commercial Plan and Exclusive Plan Users
- If you are a Guance Commercial Plan user, refer to the documentation 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 activating the Exclusive Plan for index binding. For details on how to activate the Exclusive Plan, refer to Activate Guance Exclusive Plan on Alibaba Cloud Market;
- 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 in Hong Kong and overseas regions.
Account Authorization:
Click Proceed Now to redirect to Alibaba Cloud, log in, and perform the authorization operation.
Click Agree to Authorize, and a Service Provider UID Verification window will pop up. You can click the Service Provider Permission Description Page to view how to obtain the UID. 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:
-
After authorization, fill in your Alibaba Cloud account ID. After completion, Guance will automatically retrieve Project and Logstore.
-
Guance Index: By default, it remains consistent with 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 later.
-
Access Type: To avoid configuration path errors that may result in no data being retrieved, choose either Internal Network Access or Public Network Access based on actual conditions.
Click Confirm, and the index binding will be completed. You can switch indexes in the Explorer to view.
Note
-
Cross-account role authorization operations require using an Alibaba Cloud main account or sub-account authorized with RAM access control permissions such as GetRole, GetPolicy, CreatePolicy, CreatePolicyVersion, CreateRole, UpdateRole, and AttachPolicyToRole;
-
During verification, if verifying a sub-account that has been authorized, it will automatically locate the main account of that sub-account and pull Projects and Logstores under the main account.