---
title: DaysToKeepErrorEventsWithoutData System Parameter – Retention for Error Events Without Data
description: DaysToKeepErrorEventsWithoutData sets how many days Nodinite keeps error events that have no message data and no Message Type. Learn how it differs from DaysToKeepMessageEventsDefault. Default 10 days.
---

# DaysToKeepErrorEventsWithoutData - System Parameter

The **DaysToKeepErrorEventsWithoutData** [System Parameter][System Parameters] sets how many days the [Logging Service][] keeps error events that have no message data, and therefore no [Message Type][] to take a retention value from. Older ones are deleted on the next cleanup run.

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

| Property | Value |
| --- | --- |
| Key | `DaysToKeepErrorEventsWithoutData` |
| Data type | integer (days) |
| Default | `10` |
| 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

Retention for normal [Log Events][Log Event] is set per Message Type. Some error events never get one, because they carry no message data. Typical examples are errors raised before a message was received or processed, such as a failed connection or a rejected request. Without this parameter those error events would never expire.

On each cleanup run (see [CleanUpTimerInterval][]), the Logging Service deletes error events without data that are older than this value. Until then, they are visible in [Log Views][] like any other event. The full retention pipeline is described in the Logging Service [Data Retention][] section.

## <i class="fal fa-lightbulb" aria-hidden="true"></i> Choosing a Value

* The default `10` days gives time to notice and troubleshoot recent system-level errors without letting them pile up.
* Raise the value if you need these error events for longer, for example to investigate recurring connection problems.

## <i class="fal fa-question" aria-hidden="true"></i> Frequently Asked Questions

### How does this differ from DaysToKeepMessageEventsDefault?

[DaysToKeepMessageEventsDefault][] seeds the retention of events that have a Message Type; after that, each Message Type's own *Days to keep Events* value applies. **DaysToKeepErrorEventsWithoutData** applies only to error events without message data or Message Type, so you can keep them for a different, usually shorter, period.

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

* <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-envelope-open-text" aria-hidden="true"></i> [DaysToKeepMessageEventsDefault][]  
* <i class="fal fa-hourglass-end" aria-hidden="true"></i> [MissingEventsDays][]  
* <i class="fal fa-user-tag" aria-hidden="true"></i> [DaysToKeepLogAudits][]  
* <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/
[Data Retention]:https://docs.nodinite.com/core-services/logging-service/overview/#data-retention
[DaysToKeepLogAudits]:https://docs.nodinite.com/administration/settings/system-parameters/daystokeeplogaudits/
[DaysToKeepMessageEventsDefault]:https://docs.nodinite.com/administration/settings/system-parameters/daystokeepmessageeventsdefault/
[Log Event]:https://docs.nodinite.com/core-services/log-event/overview/
[Log Views]:https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/
[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/
[Message Type]:https://docs.nodinite.com/repository-model/message-types/overview/
[MissingEventsDays]:https://docs.nodinite.com/administration/settings/system-parameters/missingeventsdays/
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/