---
title: "Change Log Retention Period"
sidebar_label: "Change Retention Period"
description: "How to change the log retention period"
sidebar_position: 5
---

import Formbricks from '@theme/MDXComponents/Formbricks';
import MoreVerticalIcon from '@selectel/docux/icons/more-vertical';

# Change Log Retention Period

:::infoLog retention period is always calculated from the date logs were generated. If the new retention period is less than the number of days the logs have already been stored in the service, the logs will be deleted within 24 hours. :::

You can change the log retention period in the Control Panel. Logs are deleted after the retention period expires. The default log retention period is 30 days.

1. In the [control panel](https://my.selectel.ru/logs/default/logs/), on the top menu, click **Products** and select **Logs**.

2. In the **Logs** section, in the <MoreVerticalIcon /> menu of the log group, select **Change retention period**.

3. Select the number of days the group logs will be stored.

4. Optional: if you need to change the retention period for logs in multiple groups:

   4.1. Select the **Apply to other groups** checkbox.

   4.2. Select the groups for which you want to change log retention period.

5. Enter the log group name.

6. Click **Save**.

<Formbricks />
