Updated on 2024-12-18 GMT+08:00

Changing the Log Storage Duration

Logs are stored for seven days by default. The storage duration can be set to 1 to 360 days. Logs that exceed the storage duration will be automatically deleted. For log data that needs to be stored for a long time (log persistence), LTS can dump the logs to OBS for medium- and long-term storage.

Prerequisites

Logs have been dumped to LTS by configuring Configuring Logs.

Changing the Log Storage Duration

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. In the navigation pane on the left, click and choose Security & Compliance > Cloud Firewall. The Dashboard page will be displayed.
  4. (Optional) Switch firewall instance: Select a firewall from the drop-down list in the upper left corner of the page.
  5. In the navigation pane on the left, choose Log Audit > Log Management. On the displayed page, click Modify Log Storage Duration.

    • Logs can be stored for 1 to 360 days. Logs that exceed the specified storage duration are automatically deleted.
    • The longer the storage duration, the larger the occupied storage. For details about how to dump logs to other cloud services for long-term storage, see Log Transfer Overview.