FAQ and troubleshooting
Find solutions to common Log Audit Service errors and get answers to frequently asked questions.
Common errors and troubleshooting
|
Error type |
Error message |
Cause |
Solution |
|
Account configuration |
|
The current account is a regular central account, which cannot use a resource directory to collect logs from multiple accounts. To use this feature, the central account must be the management account or a delegated administrator of the resource directory. For more information, see Collect logs from multiple accounts. |
Configure multi-account collection in custom authentication mode. For more information, see custom authentication mode. |
|
|
A conflict exists in the multi-account configuration.
|
To add the account
|
|
|
The |
The account was previously a central or member account whose Log Audit Service Projects were deleted while log collection was still active. Always stop log collection for all cloud products before deleting Projects, as described in Delete Log Audit Service resources. Deleting active Projects prevents the system from recognizing the new configuration. |
Submit a ticket to contact the Log Service team. |
|
|
Error message: The current management account has multi-account log collection configured. Go to Log Audit Service in the SLS console and delete the multi-account configuration first. Error code: DeregisterDA.Deny.TrustedService. |
You tried to change the delegated administrator in the resource directory console without first removing the multi-account configuration for the original delegated administrator. |
Remove the multi-account configuration from the central account of the current delegated administrator. If log collection is configured for all member accounts, switch to custom mode and clear all selections. Then, change the delegated administrator. |
|
|
Permission configuration |
|
The permissions for the |
Reconfigure the permissions for the |
|
|
The RAM user lacks the necessary permissions to perform operations in Log Audit Service. |
Grant the required permissions to the RAM user. For more information, see Grant a RAM user the permissions to perform operations on Log Audit Service. |
|
|
Quota limit |
|
A resource quota has been exceeded. Log Service limits basic resources such as Shards. For more information, see Basic resource limits. |
If you receive an |
|
|
The number of Projects under the account exceeds the quota. Log Service limits basic resources such as Projects and Shards. For more information, see Basic resource limits. |
If the number of Projects under a single account in Log Audit Service exceeds the quota, submit a ticket to increase the resource quota. |
|
|
Audit resources |
When you try to change the log retention period, the system displays the following message: |
N/A |
On the Global Configurations page of Log Audit Service, modify the log retention period, hot data retention period, and other settings. |
|
When you try to delete a Logstore, the system returns the error |
A Logstore in Log Audit Service may be associated with built-in dashboards and alerts and cannot be deleted individually. |
|
|
|
LogException{httpCode=-1 errorCode='DeleteFailed' message='delete auditJob error' requestId=''} |
Central Projects are supported only in specific regions. If you specify an unsupported region, such as China (Chengdu), Log Audit Service creates a Project named Note
The following regions are supported:
|
Manually delete the incorrect Project ( |
|
|
The menu items are missing in Log Audit Service. |
Log collection is not enabled for the central account in Log Audit Service. |
Enable log collection for the central account. For more information, see Enable and manage log collection. |
FAQ
-
Why does my change to the log retention period not take effect if I make it right before I disable log collection? For example, I change the retention period to 1 day for Server Load Balancer (SLB) Layer 7 access logs to clear existing data, but after I disable collection, the period remains 180 days.
You must save the retention period change before disabling log collection. Otherwise, the change does not take effect. To update the log retention period, perform the following steps:
-
On the Global Configurations page of Log Audit Service, click Modify.
-
Change the log retention period for the target log type, and then click Save.
NoteMake sure that log collection is enabled when you save the change. After saving, wait for one minute before proceeding.
-
Click Modify again.
-
Disable log collection for the target log type, and then click Save.
-
-
How do I check the log collection status?
In the Log Audit Service console, go to the page.
-
What should I do if the system reports a permission error or an invalid AccessKey pair?
Verify that the account permissions are configured correctly. For single-account collection, see Initial configuration. For multi-account collection, see Custom authorization for log collection and synchronization. For example, this issue can occur if the ReadOnlyAccess policy under System Policy is not attached to the
sls-audit-service-monitorrole. -
What should I do if the system reports that a specific service is not enabled for my account?
This usually means a required feature is not enabled for a specific cloud product. For more information, see Supported Alibaba Cloud services. For example, this issue can occur if you have activated Security Center but have not enabled the Log Analysis feature.
-
Why is the number of built-in alert rules on the Alert Center page of the
slsaudit-center-${uid}-${region}Project different from the number on the Audit alerts page of Log Audit Service?-
In addition to rules for Log Audit Service, the
slsaudit-center-${uid}-${region}Project also contains alert rules for other features, such as data transformation. -
The Audit alerts page of Log Audit Service displays rules only for cloud products with log collection enabled. The Alert Center page of the
slsaudit-center-${uid}-${region}Project does not have this requirement. -
Because of factors such as different regions and language versions, the number of built-in alert monitoring rules on the Audit alerts page of the Log Audit Service may differ from the number on the Alert Center page of the
slsaudit-center-${uid}-${region}Project.
-
-
Why are the numbers of alert policies, action policies, and alert templates on the Alert Center page of the
slsaudit-center-${uid}-${region}Project different from those on the Audit alerts page of Log Audit Service?The Audit alerts page of Log Audit Service shows only the alert policies, action policies, and alert templates for Log Audit Service. The
slsaudit-center-${uid}-${region}Project may also contain configurations from other associated applications, causing the counts to differ. -
Why can't I find performance logs for ApsaraDB RDS for MySQL and PolarDB for MySQL on the Audit Query page?
The Audit Query page displays query links only for 'log' data. Performance logs are 'Metric' data. To access them, go to the Global Configurations page, click the central Project name (for example,
slsaudit-center-{Account ID}-cn-hangzhou), and then find the Metric Storage page in the Log Service console. -
What should I do if Log Audit Service stops working because I accidentally deleted the
sls-audit-service-monitorrole or modified its permission policy in the RAM console?-
If you use a central account and used an sls-audit-service-monitor role that was created by using an AccessKey to enable Log Audit Service, you only need to return to the Global Configurations page of Log Audit Service and follow the on-screen instructions to complete the authorization. For more information, see First-time configuration.
NoteThe original
sls-audit-service-monitorrole is still supported if the role exists and its permission policy is correct. To prevent accidental deletion or modification, we strongly recommend upgrading to the service-linked role (SLR) authorization method. -
If your account is a member account, find the
sls-audit-service-monitorrole in the RAM console (or create it if it does not exist) and modify its permission policy. For more information, see Custom authorization for log collection and synchronization.
-