Enable the log auditing feature

Updated at:

Tair (Redis OSS-compatible) provides a log auditing feature that is based on Alibaba Cloud Simple Log Service. This feature lets you query, analyze, and export logs. Security auditors can use this feature to quickly detect abnormal data operations and identify the user and time of data modification. This feature also helps business systems meet security and compliance requirements. Developers and O&M engineers can use this feature to locate performance issues. This topic describes how to enable the log auditing feature in the Tair (Redis OSS-compatible) console and push Redis audit logs to Simple Log Service.

Prerequisites

To enable the audit log feature, a Resource Access Management (RAM) user must have the permissions to manage Simple Log Service.

  • You can attach the AliyunLogFullAccess system policy to a RAM user. After the RAM user is granted the permissions defined in the system policy, the RAM user can manage all Logstores. For more information, see Grant permissions to a RAM user.

  • You can also customize a policy to restrict the RAM user to only manage the audit logs of Tair Redis.

    Examples of custom policies

    {
     "Version": "1",
     "Statement": [
      {
       "Action": "log:*",
       "Resource": "acs:log:*:*:project/nosql-*",
       "Effect": "Allow"
      }
     ]
    }

What to do next

  • For more information about billing, scenarios, and API operations for the log auditing feature of Tair (Redis OSS-compatible), see Audit logs.

  • After Simple Log Service collects Redis logs, you can query, analyze, download, ship, and transform the logs, or create alert rules. For more information, see Common operations on logs of Alibaba Cloud services.