> For the complete documentation index, see [llms.txt](https://docs.enginsight.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.enginsight.com/docs/manual/english/platform-usage/siem/advanced-settings/log-ttls.md). Agents can also search and read this documentation through its [MCP server](https://docs.enginsight.com/docs/~gitbook/mcp).

# Log TTLs

Configuring custom log retention periods (Time to Live; TTL) allows you to store specific log data from selected hosts for a defined period only, which helps to save storage resources. Once the retention period expires, the respective log entries are deleted automatically.

***

## Important Notes

* Defining a log TTL adds the `ngs.expiresAt` field to affected logs. The values are **checked every 12 hours**.
* A log TTL only applies to **new logs that are received after the TTL is configured**. Logs that were already received still use the [TTL set in Loggernaut](https://docs.enginsight.com/docs/knowledge-base/english/logging/how-can-i-adjust-the-retention-periods-for-my-enginsight-logs#storage-on-the-siem-index-server).
* More than one log TTL can apply to the same log. In this case, the log TTL with the **longest retention time** is used.

***

<i class="fa-compass">:compass:</i> Navigate to **SIEM** → **Log TTLs** to show a list of all custom log retention periods. If you have not created a log TTL yet, this view is empty.

<figure><img src="https://2423388680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7OrHgKXA0t1jankQBYf%2Fuploads%2F7vWNL6ChCAohZxbVKNfb%2Fenginsight-screenshot-siem-advanced%20settings-log%20ttls.jpg?alt=media&amp;token=03367d6b-f6e3-4c59-8146-6a045028db46" alt=""><figcaption></figcaption></figure>

The [log TTL overview](#log-ttls-overview) provides information such as:

* the specific field values and fields to which a log TTL applies.
* the type of log collector "source" that is used.
* the specific extractors ("collectors"), hosts, or groups of hosts to whose logs a log TTL applies.

You can also [add new Log TTLs](#add-log-ttl) and enable or disable existing log TTLs.

***

## Navigation

<i class="fa-magnifying-glass">:magnifying-glass:</i> Click the **Text Search** field above the list and enter a search term of your choice to find specific list items more quickly.

<i class="fa-computer-mouse">:computer-mouse:</i> Click the **Refresh** icon <i class="fa-arrows-rotate-reverse">:arrows-rotate-reverse:</i> above the list to update all list items.

<i class="fa-computer-mouse-scrollwheel">:computer-mouse-scrollwheel:</i> Scroll down the list or adjust the number of results shown per page ![](https://2423388680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7OrHgKXA0t1jankQBYf%2Fuploads%2FfjKACCt2SKXcFd3S7Xb5%2FEnginsight-EN-Results%20per%20Page.jpg?alt=media\&token=e1650160-7a41-4965-aaca-6975db758dbe) to view additional entries. Use the page navigation ![](https://content.gitbook.com/content/V7OrHgKXA0t1jankQBYf/blobs/wnxVw06QGoSsYjhwMJRF/Enginsight-Seitennavigation-2.jpg) to switch between pages.&#x20;

### Sorting List Items

<i class="fa-computer-mouse">:computer-mouse:</i> Click the **Sort** icon <i class="fa-sort">:sort:</i> next to a column name in the table header to sort by that column in ascending <i class="fa-angle-up">:angle-up:</i> or descending order <i class="fa-chevron-down">:chevron-down:</i> .

<i class="fa-computer-mouse">:computer-mouse:</i> Click the sort icon <i class="fa-bars-sort">:bars-sort:</i> above the list to adjust the priority of the applied sorting. A menu opens that shows all columns by which the list is currently sorted. Drag and drop the shown items to change the sorting priority.

### Further Actions for List Items

<i class="fa-computer-mouse">:computer-mouse:</i> Select the checkbox <i class="fa-square">:square:</i> next to a list item to select the respective item. Alternatively, select the checkbox in the table header to select all list items.

The number of selected list items is now shown next to the search field.

The <i class="fa-slider">:slider:</i> **Actions** menu also appears in the upper-right corner. Click it to expand the respective submenu. The following actions are available:

<table><thead><tr><th width="209.06640625">Action</th><th>Description</th></tr></thead><tbody><tr><td>Delete</td><td><p>Delete all selected objects.<br><br><i class="fa-computer-mouse">:computer-mouse:</i> Click <strong>Delete</strong> and confirm the prompt that appears by clicking <strong>Delete Irretrievably</strong>.</p><div data-gb-custom-block data-tag="hint" data-style="danger" class="hint hint-danger"><p><strong>Please note</strong>: Deleted items cannot be recovered.</p></div></td></tr><tr><td>Enable</td><td><i class="fa-eye">:eye:</i> This action is only available if all selected objects are inactive.<br><br>Enable all inactive objects.</td></tr><tr><td>Disable</td><td><i class="fa-eye">:eye:</i> This action is only available if all selected objects are active.<br><br>Disable all active objects.</td></tr></tbody></table>

***

## Log TTLs: Overview

The log TTL overview is structured as a table.

<figure><img src="https://2423388680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7OrHgKXA0t1jankQBYf%2Fuploads%2F5AiwfrH8Lou8pE069gJu%2Fenginsight-screenshot-siem-advanced%20settings-log%20ttls%20overview.jpg?alt=media&amp;token=b7167509-c96e-4363-8b84-f8d6b1de5888" alt=""><figcaption></figcaption></figure>

The following information is shown:

<table><thead><tr><th width="200.03125">Column</th><th>Description</th></tr></thead><tbody><tr><td>Name</td><td><p>Shows the custom name of the log TTL and an additional description, if provided.</p><p></p><p>The date and time of creation and last edit are also shown.<br><br><i class="fa-computer-mouse">:computer-mouse:</i> Click the name of a log TTL to navigate to the respective <a href="#log-ttl-edit-view">edit view</a>. Here you can adjust configured settings and delete the log TTL.</p></td></tr><tr><td>Filter Fields</td><td>Shows the field or fields, including their associated field values (specific number, string, or regular expression), to which the log TTL applies.</td></tr><tr><td>Source</td><td>Shows the type of the raw log source, that is, the type of log collector.</td></tr><tr><td>Assigned References</td><td>Depending on the source, shows the assigned extractors (for event relays) or the assigned hosts or tags for groups of hosts (for operating system-specific logs) to whose logs the log TTL applies.</td></tr><tr><td>Enabled</td><td>Shows whether the log TTL is active or not.<br><br>An enabled Log TTL is indicated by a green <strong>check</strong> icon <i class="fa-circle-check" style="color:green;">:circle-check:</i>. Disabled Log TTLs are indicated by a red <strong>circle</strong> icon <i class="fa-circle" style="color:red;">:circle:</i>.</td></tr></tbody></table>

***

## Adding a Log TTL

<i class="fa-computer-mouse">:computer-mouse:</i> Click <i class="fa-plus">:plus:</i> **Add Log TTL** in the upper-right corner to [create a new Log TTL](https://docs.enginsight.com/docs/manual/english/platform-usage/siem/advanced-settings/log-ttls/add-log-ttl.md).

***

## Log TTL: Edit View

<i class="fa-computer-mouse">:computer-mouse:</i> Click the name of a log TTL to navigate to the respective edit view. Here you can adjust [configured settings](https://docs.enginsight.com/docs/manual/english/platform-usage/siem/advanced-settings/log-ttls/add-log-ttl.md#general-settings) and delete the log TTL.

<figure><img src="https://2423388680-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV7OrHgKXA0t1jankQBYf%2Fuploads%2FDETF4XjvvcvvgntO9Ilh%2Fenginsight-siem-advanced%20settings-log%20ttls-edit%20view.jpg?alt=media&amp;token=4d15ed70-c6fd-4569-98a3-6ee881af2434" alt=""><figcaption></figcaption></figure>

The following actions are available:

<table><thead><tr><th width="200.39453125">Option</th><th>Description</th></tr></thead><tbody><tr><td>Save Changes</td><td><p><i class="fa-computer-mouse">:computer-mouse:</i> Click <strong>Save Changes</strong> after adjusting any settings.</p><div data-gb-custom-block data-tag="hint" data-style="danger" class="hint hint-danger"><p><strong>Please note:</strong> Unsaved changes cannot be recovered.</p></div></td></tr><tr><td>Back</td><td><i class="fa-computer-mouse">:computer-mouse:</i> Click <strong>Back</strong> to return to the list overview.</td></tr><tr><td>Remove</td><td><p><i class="fa-computer-mouse">:computer-mouse:</i> Click <strong>Remove</strong>, then confirm the prompt that appears to delete the object that you are editing.</p><div data-gb-custom-block data-tag="hint" data-style="danger" class="hint hint-danger"><p><strong>Please note:</strong> Deleted objects cannot be recovered.</p></div></td></tr></tbody></table>

***
