All Products
Document Center

How do I adjust the data retention period of log service?

Last Updated: Oct 10, 2020


Excessive logs stored in the log service console may incur excessive fees. In addition, the previous log files are no longer in use. Therefore, you must delete these previous log files. However, log service does not allow you to delete log files directly. Instead, you can set a retention period for logs in a Logstore to clear logs that exceed the retention period. This topic describes how to adjust the data retention period of log service.


  1. Login log Service Console click the name of the Project.
  2. Click modify.
  3. Enter on the Logstore properties page, click modify.
  4. Modify data retention period, click save.

Application scope

  • Log Service for WAF