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.
NoteAnti-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
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.
Log on to the console of Anti-DDoS Pro of the former version.
In the left-side navigation pane, choose
.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.
WarningDo 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.
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.