SLS Logstore Index Binding¶
Select SLS Logstore. Two authorization methods are supported:
Third-party Quick Authorization
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 in above, Guance automatically retrieves Project and Logstore.
-
Guance 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 Guance.
-
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.
- Enter the index description as needed.
Field Mapping¶
Configure Field Mapping.
After configuration, click Confirm to complete the index binding. You can view it by switching the index in the Explorer.
For Commercial Plan and Exclusive Plan
- 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 obtained 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 authorization method is not supported for Hong Kong and global sites.
Account Authorization¶
-
Click "Go Now" to jump 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 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 Market > Purchased Services;
- The authorization is now complete.
Resource Authorization¶
-
After account authorization is complete, fill in your Alibaba Cloud account ID. After filling it in, Guance will automatically retrieve Project and Logstore;
-
Guance 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 Guance.
-
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¶
Configure Field Mapping.
After configuration, click Confirm to complete the index binding. You can view it by switching the index in the Explorer.
Note
-
To perform cross-account role authorization, you need to use the Alibaba Cloud master account or a sub-account with RAM access control permissions such as GetRole, GetPolicy, CreatePolicy, CreatePolicyVersion, CreateRole, UpdateRole, AttachPolicyToRole;
-
During the verification process, if a sub-account is being verified, it will automatically locate the master account to which the sub-account belongs and retrieve the Project and Logstore under the master account.
