All Products
Search
Document Center

Simple Log Service:Enable the log analysis feature

Last Updated:Feb 01, 2024

This topic describes how to enable the log analysis feature in the console of Anti-DDoS Pro of the former version to collect full logs to Simple Log Service.

Prerequisites

  • An instance of Anti-DDoS Pro of the former version is created. A domain name is added to the instance.

    Note

    Anti-DDoS Pro of the former version has been upgraded to Anti-DDoS Pro of the new version. The console of Anti-DDoS Pro of the former version is available only if you purchased an instance of Anti-DDoS Pro of the former version. You can no longer purchase instances in the console of Anti-DDoS Pro of the former version.

  • Simple Log Service is activated.

Procedure

Important

Before you can use a Resource Access Management (RAM) user to enable the log analysis feature, you must grant the required permissions to the RAM user. For more information, see RAM user authorization.

  1. Log on to the console of Anti-DDoS Pro of the former version.

  2. In the left-side navigation pane, choose Log > Full Log.

  3. On the Full Log page, authorize Anti-DDoS Pro of the former version to assume the AliyunAntiDDoSProAccessingLogRole role to access Simple Log Service.

    The first time you enable the log analysis feature, you must complete the authorization by using your Alibaba Cloud account.

    Warning

    Do not revoke permissions from the AliyunAntiDDoSProAccessingLogRole role or delete the role. Otherwise, the logs of Anti-DDoS Pro of the former version cannot be delivered to Simple Log Service.

  4. Select the website for which you want to enable the log analysis feature and turn on Status.

What to do next

After full logs are collected to Simple Log Service, you can query, analyze, download, ship, and transform the logs in Simple Log Service. You can also configure alert rules for the logs. For more information, see Common operations on logs of Alibaba Cloud services.