Simple Log Service and Tair (Redis OSS-compatible) jointly offer CloudLens for Redis, which centrally manages Redis instances and collects operational logs, slow query logs, and audit logs.
Features
CloudLens for Redis supports the following:
-
Centrally manage all eligible Redis instances in your Alibaba Cloud account. Eligibility conditions are listed in Limits.
-
Enable one-click collection of operational logs, slow query logs, and audit logs, and manage collection status centrally.
-
Store, query, and analyze Redis logs in real time.
-
Access a wide range of visual reports.
Assets
After you enable CloudLens for Redis, SLS automatically creates a project named nosql-Alibaba Cloud account ID-Region ID and two Logstores named redis_audit_log_standard and redis_slow_run_log in the corresponding region.
-
The redis_audit_log_standard Logstore stores the audit logs of Redis instances.
Audit logs support operational reviews and security compliance:
-
Track operator identities and data modification times to detect permission abuse or non-compliant commands.
-
Meet regulatory audit requirements.
-
-
The redis_slow_run_log Logstore stores the slow query logs and operational logs of Tair (Redis OSS-compatible) instances.
-
Slow query logs record requests whose running time exceeds a specified threshold. Use them to diagnose performance issues and optimize queries.
-
Operational logs record the lifecycle status of Redis instances. Use them to troubleshoot O&M issues.
-
Billing
-
Tair (Redis OSS-compatible) charges for audit logs based on storage space and retention period. Fees vary by region. Billable items.
Slow query logs and operational logs incur no fees for writing, storage, or queries.
-
After you collect Redis logs with SLS, you are also charged for data transformation, data shipping, and outbound traffic from public endpoints. Billable items of pay-by-feature.
Limits
-
Log collection requires Redis instances that meet these conditions:
-
The Audit logs feature is enabled.
-
The instance runs Redis 4.0 or later with the latest minor version. To upgrade, see Upgrade the major version and Update the minor version and proxy version.
-
The instance is a Community Edition or performance-enhanced instance that uses local disks.
-
-
CloudLens for Redis is available in the following regions:
Cloud type
Region
Public cloud
China (Qingdao), China (Beijing), China (Zhangjiakou), China (Hohhot), China (Hangzhou), China (Shanghai), China (Shenzhen), China (Heyuan), China (Guangzhou), China (Chengdu), China (Hong Kong), Singapore, Malaysia (Kuala Lumpur), Indonesia (Jakarta), Japan (Tokyo), US (Silicon Valley), US (Virginia), Germany (Frankfurt), UK (London), and UAE (Dubai)
Notes
The CloudLens feature requires at least one project to exist under your Alibaba Cloud account.
When you enable and use the CloudLens feature, Simple Log Service checks whether a project exists under your account based on the following logic.
Detection logic
When you enable the CloudLens feature for the first time, Simple Log Service checks whether a project exists under your Alibaba Cloud account. If no project exists, a project named
aliyun-product-data-Alibaba Cloud account ID-cn-heyuanis created in the China (Heyuan) region.After you enable the CloudLens feature and navigate to the CloudLens page, Simple Log Service checks only whether a project exists under your Alibaba Cloud account. It does not automatically create a project in the China (Heyuan) region. You can manually create a project. For more information about how to create a project, see Manage projects.
Delete a project
To delete the
aliyun-product-data-Alibaba Cloud account ID-cn-heyuanproject, open Cloud Shell and run the following command. Replace Alibaba Cloud account ID with your actual account ID.aliyunlog log delete_project --project_name=aliyun-product-data-Alibaba Cloud account ID-cn-heyuan --region-endpoint=cn-heyuan.log.aliyuncs.comFor more information about how to delete other projects and Logstores, see Manage Logstores and Manage projects.