---
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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> keeps [Log Audit][Log Audit Search] records, the audit trail of sensitive operations performed by users and by the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [Core Services][]. The [Logging Service][] deletes older records on its next cleanup run.

<h2 id="at-a-glance"><i class="fal fa-table" aria-hidden="true"></i> At a Glance</h2>

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

## <i class="fal fa-gears" aria-hidden="true"></i> How It Works

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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.

<aside aria-label="Warning" class="nodinite-note nodinite-note--warning">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-triangle-exclamation"></i> Warning</p>
<div class="nodinite-note__content"><p>Deleted Log Audit records cannot be recovered. Check your audit requirements before you lower the value.</p></div>
</aside>

## <i class="fal fa-lightbulb" aria-hidden="true"></i> 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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>, export them from [Log Audit Search][] to your own archive before they expire.

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-user-tag" aria-hidden="true"></i> [Log Audit Search][]  
* <i class="fal fa-trash-can" aria-hidden="true"></i> [Data Retention][]  
* <i class="fal fa-pen-to-square" aria-hidden="true"></i> [Manage System Parameters][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-clock" aria-hidden="true"></i> [CleanUpTimerInterval][]  
* <i class="fal fa-calendar-xmark" aria-hidden="true"></i> [DaysToKeepErrorEventsWithoutData][]  
* <i class="fal fa-hourglass-end" aria-hidden="true"></i> [MissingEventsDays][]  
* <i class="fal fa-hard-drive" aria-hidden="true"></i> [Logging Service][]  
* <i class="fal fa-cog" aria-hidden="true"></i> [System Parameters][]  

[CleanUpTimerInterval]:https://docs.nodinite.com/administration/settings/system-parameters/cleanuptimerinterval/
[Core Services]:https://docs.nodinite.com/core-services/overview/
[Data Retention]:https://docs.nodinite.com/core-services/logging-service/overview/#data-retention
[DaysToKeepErrorEventsWithoutData]:https://docs.nodinite.com/administration/settings/system-parameters/daystokeeperroreventswithoutdata/
[Log Audit Search]:https://docs.nodinite.com/administration/tools/log-audit-search/
[Logging Service]:https://docs.nodinite.com/core-services/logging-service/overview/
[Manage System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/manage-system-parameters/
[MissingEventsDays]:https://docs.nodinite.com/administration/settings/system-parameters/missingeventsdays/
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/