Simple Log Service (SLS) and Tair (Redis OSS-compatible) jointly launch the CloudLens for Redis application. You can use the application to manage Tair (Redis OSS-compatible) instances in a centralized manner and collect the run logs, slow query logs, and audit logs of the instances. This topic describes the features, assets, billing, and limits of CloudLens for Redis.
Features
CloudLens for Redis provides the following features:
Allows you to manage all Tair (Redis OSS-compatible) instances that meet specified conditions within your Alibaba Cloud account in a centralized manner. For more information about the conditions, see Limits.
Allows you to enable the data collection feature for run logs, slow query logs, and audit logs of Tair (Redis OSS-compatible) instances with a few clicks and manage the log collection status of the instances in a centralized manner.
Allows you to store, query, and analyze the run logs, slow query logs, and audit logs of Tair (Redis OSS-compatible) instances in real time.
Provides various reports.
Assets
After you enable CloudLens for Redis and data collection for an Tair (Redis OSS-compatible) instance, Simple Log Service automatically creates a project named in the nosql-Alibaba Cloud account ID-Region ID format and two Logstores named redis_audit_log_standard and redis_slow_run_log in the region where the instance resides.
redis_audit_log_standard: This Logstore is used to store the audit logs of Tair (Redis OSS-compatible) instances.
Audit logs are used to review operations and ensure security compliance.
Audit logs help security auditors obtain information such as operator identities and time of data modification, and identify internal risks such as abuse of permissions and execution of non-compliant commands.
Audit logs help business systems meet audit requirements to ensure security compliance.
redis_slow_run_log: This Logstore is used to store the slow query logs and run logs of Tair (Redis OSS-compatible) instances.
Slow query logs record the requests whose execution time exceeds a specified threshold. You can use slow query logs to resolve performance issues and optimize requests.
Run logs record the status of Tair (Redis OSS-compatible) instances during their lifecycles. You can use run logs to resolve O&M issues.
Billing
Tair (Redis OSS-compatible): You are charged based on the storage space and retention period of audit logs. The fees that you must pay vary based on the region of your Tair (Redis OSS-compatible) instance. For more information, see Billable items.
You are not charged when you write, store, or query slow query logs and run logs.
Simple Log Service: After you collect logs from Tair (Redis OSS-compatible) to Simple Log Service, you can transform the logs or ship the logs. You can also read the logs in stream mode by using a public endpoint of Simple Log Service. You are charged for the read traffic over the Internet, data transformation, and data shipping. For more information, see Billable items of pay-by-feature.
Limits
Simple Log Service collects logs from an Tair (Redis OSS-compatible) instance only if the instance meets the following conditions:
The audit logging feature is enabled for the instance. For more information, see Enable the audit log feature.
The major engine version of the instance is Redis 4.0 or later, and the minor engine version of the instance is the latest version. For more information about how to upgrade the engine versions of an Tair (Redis OSS-compatible) instance, see Upgrade the major version and Update the minor version.
The instance runs Community Edition or is a performance-enhanced instance that uses local disks.
CloudLens for Redis is supported in the following regions.
Cloud type
Region
Alibaba Cloud 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 (Virginia), US (Silicon Valley), Germany (Frankfurt), UK (London), and UAE (Dubai)
Precautions
To use a CloudLens application, make sure that at least one project exists within your Alibaba Cloud account.
When you enable a CloudLens application, Simple Log Service automatically checks whether a project exists within your Alibaba Cloud account.
Check logic
The first time you enable a CloudLens application, Simple Log Service automatically checks whether a project exists within your Alibaba Cloud account. If no projects exist, Simple Log Service creates a project whose name is in the
aliyun-product-data-<Alibaba Cloud account ID>-cn-heyuan
format in the China (Heyuan) region.After you enable a CloudLens application, Simple Log Service automatically checks whether a project exists within your Alibaba Cloud account. If no projects exist, Simple Log Service does not 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 a project.
Delete a project
If you want to delete the project whose name is in the
aliyun-product-data-<Alibaba Cloud account ID>-cn-heyuan
format, open Cloud Shell and run the following command. Replace the Alibaba Cloud account ID based on your business scenario.aliyunlog log delete_project --project_name=aliyun-product-data-<Alibaba Cloud account ID>-cn-heyuan --region-endpoint=cn-heyuan.log.aliyuncs.com
If you want to delete other projects and logstores, follow the instructions provided in Manage a logstore and Manage a project.