# Очистка логов

Эта задача позволяет удалить старые логи (серверные и клиентские), чтобы освободить место в базе данных и улучшить производительность системы.

### **1. Настройка параметров очистки**

Перед запуском задачи укажите:

**Тип логов для очистки**

* **Серверные логи.**
* **Клиентские логи.**

#### **Период хранения логов**

* Укажите, за какой **период сохранять логи** (например, «Оставить логи за последние 30 дней»).
* Всё, что **старше выбранного срока**, будет удалено.

### **2. Запуск задачи**

1. Перейдите в раздел **«Монитор задач»**.
2. Выберите задачу **«Очистка логов»**.
3. Задайте параметры:
   * Тип логов (**серверные / клиентские**).
   * **Срок хранения** (например, 7, 30, 90 дней).
4. Нажмите **«Запустить»**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aamsystems.ru/passoffice/passoffice-guide/admin-guide-doc/background-tasks/ochistka-logov.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
