# Log Retention

## **Introduction**

The **Log Retention Module** in Autommate allows you to define how long system logs are stored and where they are archived. This feature helps optimize resource usage, ensures compliance with legal requirements, and enhances system performance by preventing unnecessary log accumulation. Additionally, users can receive notifications when logs are archived, enabling proactive system monitoring.

{% embed url="<https://youtu.be/eLhc6O6rX4Q>" %}

***

## Key Features

* Retain logs for a specified number of days (e.g., 7, 30 days)
* Define the folder path where logs are saved
* Receive email notifications for archived logs
* Behavior varies for Cloud and On-Premise deployments
* Restore to default settings with a single click

***

## How To Use

{% stepper %}
{% step %}

#### Set Log Retention Period

* Use the `Save my logs of last [X] Day` dropdown to select how many days of logs should be retained (e.g., **30 Day**).
* Logs older than the specified period will be automatically archived or deleted.
  {% endstep %}

{% step %}

#### Define Folder Path for Saved Logs

Enter the desired folder path in the `Default folder path for saved logs` field.

{% hint style="danger" %}

## Folder Path Notes

{% endhint %}

<figure><img src="/files/C2MN3cTmokIpc0WA323S" alt=""><figcaption><p>Screen View for On-Premises Version</p></figcaption></figure>

<figure><img src="/files/IebFyMwjZMsnFU6GEVi7" alt=""><figcaption><p>Screen View for Cloud Version</p></figcaption></figure>

{% hint style="danger" %}

* For **On-Premise** setups, this path must be specified manually by the user.
* In the **Cloud** version, this path is predefined and should not be modified.

📩 For more information, contact: <support@autommate.com>
{% endhint %}
{% endstep %}

{% step %}

#### Configure Email Notification

* Enter a valid email address in the `Enter your email to receive notifications for archived logs` field.

{% hint style="warning" %}
If no email is entered:

* Notifications will be sent to the address defined in the license file.
* If Mail Server settings are not configured, notifications will only appear in the **Dashboard > Notification Panel**.
  {% endhint %}
  {% endstep %}
  {% endstepper %}

***

## Additional Actions

#### Save Settings

* Click the **Save** button to activate the settings.

#### Restore Default Settings

* Use the **Restore Default Settings** button to revert to the original configuration.

***

{% hint style="danger" %}

### &#x20;Warnings and Tips

* Logs deleted after the retention period cannot be recovered—configure with caution.
* Some industries require logs to be retained for a minimum period—ensure compliance.
* The specified folder path must be writable by the system.
* Email addresses must be valid and properly configured to avoid delivery issues.
  {% endhint %}

***

## Example Configuration

| Setting Name       | Value                                                |
| ------------------ | ---------------------------------------------------- |
| Retention Period   | 30 Day                                               |
| Folder Path        | C:\AutomMatePublish\webapps\ROOT\public\archive\logs |
| Notification Email | <support@autommate.com>                              |


---

# 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.autommate.com/userguide/product-features/settings/log-retention.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.
