---
title: DaysToKeepLogAudits System Parameter – Log Audit Retention
description: DaysToKeepLogAudits sets how many days Nodinite keeps Log Audit records, the audit trail of who did what and when. Older records are deleted permanently on the next cleanup run. Default 90 days.
---

# DaysToKeepLogAudits - System Parameter

The **DaysToKeepLogAudits** [System Parameter][System Parameters] sets how many days :Nodinite: keeps [Log Audit][Log Audit Search] records, the audit trail of sensitive operations performed by users and by the :Nodinite: [Core Services][]. The [Logging Service][] deletes older records on its next cleanup run.

## :fa-table: At a Glance {#at-a-glance}

| Property | Value |
| --- | --- |
| Key | `DaysToKeepLogAudits` |
| Data type | integer (days) |
| Default | `90` |
| Read by | [Logging Service][] |
| Takes effect | Next cleanup run; no restart needed |
| Status | ✅ Active |

## :fa-gears: How It Works

:Nodinite: always writes a Log Audit record when a user or a service performs a sensitive operation, and administrators search these records in [Log Audit Search][]. On each cleanup run (see [CleanUpTimerInterval][]), the Logging Service deletes Log Audit records older than this value. One value applies to all Log Audit records. The full retention pipeline is described in the Logging Service [Data Retention][] section.

>[!WARNING]
>Deleted Log Audit records cannot be recovered. Check your audit requirements before you lower the value.

## :fa-lightbulb: Choosing a Value

* Set the value from your organisation's own audit and compliance requirements; ask your compliance or legal team how long the audit trail must be kept.
* A longer retention keeps a longer audit trail at the cost of more storage.
* If you must keep audit records longer than is practical in :Nodinite:, export them from [Log Audit Search][] to your own archive before they expire.

## :fa-hand-point-right: Next Steps

* :fa-user-tag: [Log Audit Search][]  
* :fa-trash-can: [Data Retention][]  
* :fa-pen-to-square: [Manage System Parameters][]  

## :fa-link-horizontal: Related Topics

* :fa-clock: [CleanUpTimerInterval][]  
* :fa-calendar-xmark: [DaysToKeepErrorEventsWithoutData][]  
* :fa-hourglass-end: [MissingEventsDays][]  
* :fa-hard-drive: [Logging Service][]  
* :fa-cog: [System Parameters][]  

[CleanUpTimerInterval]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/CleanUpTimerInterval.md
[Core Services]:{ndr}/Core%20Services/Overview.md
[Data Retention]:{ndr}/Core%20Services/Logging%20Service/Overview.md#data-retention
[DaysToKeepErrorEventsWithoutData]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DaysToKeepErrorEventsWithoutData.md
[Log Audit Search]:{ndr}/Administration/6.%20Tools/2.%20Log%20Audit%20Search.md
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[Manage System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Manage%20System%20Parameters.md
[MissingEventsDays]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/MissingEventsDays.md
[System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Overview.md