When using Simple Log Service (SLS), you may need to configure different access permissions for users. The Alibaba Cloud account can manage access to SLS resources by setting permission policies in Resource Access Management (RAM). This topic outlines the required permissions for various SLS features.
If you are a RAM user, request policies from the Alibaba Cloud account user as needed. For more information, see Grant permissions to a RAM user.
System policies
System policies are created by Alibaba Cloud. The policy versions are maintained by Alibaba Cloud. Users can only use these policies but cannot modify them. The system policies for SLS are as follows:
AliyunLogFullAccess: Grants permissions to manage SLS.
AliyunLogReadOnlyAccess: Grants read-only permissions on SLS.
Custom policies
Custom policies can be created, updated, and deleted as needed. When system policies cannot meet your requirements, implement fine-grained permission management by creating custom policies.
For custom policy content, SLS provides a permission assistant feature to simplify the process of obtaining policy configurations.
You can also refer to the SLS operation list for configuration. The related operations are as follows:
Operation type | Operation | Description |
Read | log:GetAlert | Query an alert rule |
Read | log:GetAppliedConfigs | Query the list of applied Logtail configurations |
Read | log:GetAppliedMachineGroups | Query the machine groups that are associated with a Logtail configuration |
Read | log:GetConfig | Query a Logtail collection configuration |
Read | log:GetCursorOrData | Query a cursor by time |
Read | log:GetDashboard | Query a specified dashboard |
Read | log:GetETL | Query a data transformation task |
Read | log:GetIndex | Query an index |
Read | log:GetLogging | Query service log information |
Read | log:GetLogStore | View Logstore information |
Read | log:GetLogStoreLogs | View Logstore monitoring logs |
Read | log:GetLogStoreMeteringMode | Query the metering mode of a Logstore |
Read | log:GetLogtailPipelineConfig | Queries the details of a Logtail pipeline configuration |
Read | log:GetMachineGroup | Query the information about a machine group |
Read | log:GetProject | Query a specified project |
Read | log:GetProjectPolicy | Query the authorization policy of a project |
Read | log:GetSavedSearch | Query a saved search |
Read | log:GetScheduledSQL | Query a Scheduled SQL job |
Read | log:GetStoreView | Query a specified dataset |
Read | log:GetStoreViewIndex | Query the index configuration of a specified dataset |
Read | log:ListConsumerGroup | Query a consumer group |
Read | log:ListDomains | Query custom domain names |
Read | log:ListLogStores | List Logstores |
Read | log:ListMachineGroup | Query machine groups in a project |
Read | log:ListMachines | Query the list of machines in a machine group |
Read | log:ListProject | List project information |
Read | log:ListSavedSearch | Quick Query |
Read | log:ListShards | Query the list of shards |
Read | log:ListTagResources | List resource tags |
Read | log:ListProjectsInRecycleBin | Query the project recycle bin |
Write | log::PutProjectTransferAcceleration | Configure the transfer acceleration feature |
Write | log:ChangeResourceGroup | Change Resource Group |
Write | log:ConsumerGroupHeartBeat | Send a heartbeat from a consumer to the server |
Write | log:ConsumerGroupUpdateCheckPoint | Update the consumption checkpoint |
Write | log:CreateConfig | Create a Logtail collection configuration |
Write | log:CreateConsumerGroup | Create a consumer group |
Write | log:CreateDashboard | Create a dashboard |
Write | log:CreateDomain | Create a custom domain name |
Write | log:CreateIndex | Creates an index |
Write | log:CreateLogging | Create service logs |
Write | log:CreateLogStore | Create a Logstore |
Write | log:CreateLogtailPipelineConfig | Creates a Logtail pipeline configuration |
Write | log:CreateMachineGroup | Create a machine group |
Write | log:CreateMetricStore | Create a Metricstore |
Write | log:CreateProject | Create Project |
Write | log:CreateSavedSearch | Creates a saved search |
Write | log:CreateScheduledSQL | Create a Scheduled SQL job |
Write | log:CreateSqlInstance | Enables the Dedicated SQL feature |
Write | log:CreateStoreView | Create a dataset |
Write | log:DeleteAlert | Delete an alert rule |
Write | log:DeleteConfig | Delete a Logtail configuration |
Write | log:DeleteConsumerGroup | Delete a consumer group |
Write | log:DeleteDashboard | Delete a dashboard |
Write | log:DeleteDomain | Delete a custom domain name |
Write | log:DeleteIndex | Deletes an index |
Write | log:DeleteLogStore | Delete a Logstore |
Write | log:DeleteMachineGroup | Delete a machine group |
Write | log:DeleteProject | Delete a specified project |
Write | log:DeleteProjectPolicy | Delete the authorization policy of a project |
Write | log:DeleteSavedSearch | Delete a saved search |
Write | log:DeleteScheduledSQL | Delete the Scheduled SQL job |
Write | log:DeleteStoreView | Delete a dataset |
Write | log:DisableAlert | Disable an alert rule |
Write | log:DisableScheduledSQL | Disable Scheduled SQL |
Write | log:EnableAlert | Enable an alert rule |
Write | log:EnableScheduledSQL | Enable Scheduled SQL |
Write | log:GetSqlInstance | Query a Dedicated SQL instance |
Write | log:ListScheduledSQLs | List Scheduled SQL jobs |
Write | log:MergeShard | Merge shards |
Write | log:PostLogStoreLogs | Write logs |
Write | log:PutProjectPolicy | Create a project authorization policy |
Write | log:SplitShard | Split a shard |
Write | log:TagResources | Attach a tag |
Write | log:UntagResources | Remove a tag |
Write | log:UpdateConfig | Update a Logtail collection configuration |
Write | log:UpdateConsumerGroup | Update a consumer group |
Write | log:UpdateDashboard | Update a dashboard |
Write | log:UpdateIndex | Updates an index |
Write | log:UpdateLogging | Update service log configuration |
Write | log:UpdateLogStore | Update a Logstore |
Write | log:UpdateLogStoreMeteringMode | Update the metering mode of a Logstore |
Write | log:UpdateLogtailPipelineConfig | Updates a Logtail pipeline configuration |
Write | log:UpdateMachineGroup | Modify a machine group |
Write | log:UpdateMachineGroupMachine | Modify the machine list of a machine group |
Write | log:UpdateProject | Update a project |
Write | log:UpdateSavedSearch | Updates a saved search |
Write | log:UpdateScheduledSQL | Update a Scheduled SQL job |
Write | log:UpdateSqlInstance | Update a Dedicated SQL instance |
Write | log:UpdateStoreView | Update dataset configuration |
List | log:ListConfig | Query the list of Logtail configurations |
List | log:ListDashboard | Query dashboards |
List | log:ListDownloadJobs | List log download tasks |
List | log:ListETLs | List data transformation tasks |
List | log:ListOSSExports | List OSS data shipping jobs |
List | log:ListOSSHDFSExports | List OSS-HDFS shipping tasks |
List | log:ListOSSIngestions | List OSS import tasks |
List | log:ListStoreViews | Query the dataset list |