---
title: MissingEventsDays System Parameter – Cleanup of Incomplete and Unprocessed Log Events
description: MissingEventsDays sets how many days the Nodinite Logging Service waits before it deletes unprocessed Log Events without a Message Type and, for BizTalk Log Agents, message data whose events never arrived. Default 7 days.
---

# MissingEventsDays - System Parameter

The **MissingEventsDays** [System Parameter][System Parameters] sets how many days the [Logging Service][] waits for incomplete logged data to become complete. After that, its cleanup run deletes unprocessed [Log Events][Log Event] that still have no [Message Type][], and, for BizTalk [Log Agents][Log Agent], message data whose matching events never arrived.

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

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

On each cleanup run (see [CleanUpTimerInterval][]), the Logging Service deletes two kinds of incomplete data older than **MissingEventsDays**:

| What is deleted | Applies to |
| --- | --- |
| Unprocessed Log Events that have no Message Type | All logging sources |
| Message data (bodies and context) whose matching events never arrived | [BizTalk Server Logging][] only |

Retention for complete, processed events is set per Message Type instead (see [DaysToKeepMessageEventsDefault][]). Data that never becomes complete has no Message Type retention to expire by, so this parameter is what removes it.

BizTalk tracking data reaches <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> in parts. If BizTalk tracking stops or is interrupted, message data can be copied without the event it belongs to. Why this happens and how to fix it is covered in [BizTalk Server Logging][] and [Copying Body and Context has been interrupted][BizTalk Logging Troubleshooting]. 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

* Keep the default `7` days in most environments.
* Raise the value if BizTalk tracking is sometimes stopped for longer than the current value, so that data has time to be completed before it is deleted.
* Lower the value to remove incomplete data sooner when you are sure it will never be completed.

<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 data cannot be recovered. A value that is too low can delete BizTalk message data before its events arrive.</p></div>
</aside>

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

### Does this parameter only apply to BizTalk Server?

No. The cleanup of unprocessed Log Events without a Message Type applies to every logging source. Only the cleanup of message data without matching events is specific to BizTalk Log Agents.

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

* <i class="fab fa-microsoft" aria-hidden="true"></i> [BizTalk Server Logging][]  
* <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-envelope-open-text" aria-hidden="true"></i> [DaysToKeepMessageEventsDefault][]  
* <i class="fal fa-user-tag" aria-hidden="true"></i> [DaysToKeepLogAudits][]  
* <i class="fal fa-wrench" aria-hidden="true"></i> [BizTalk Logging Troubleshooting][]  
* <i class="fal fa-hard-drive" aria-hidden="true"></i> [Logging Service][]  
* <i class="fal fa-cog" aria-hidden="true"></i> [System Parameters][]  

[BizTalk Logging Troubleshooting]:https://docs.nodinite.com/logging-and-monitoring/microsoft-biztalk-server-logging/troubleshooting/overview/#copying-body-and-context-has-been-interrupted
[BizTalk Server Logging]:https://docs.nodinite.com/logging-and-monitoring/microsoft-biztalk-server-logging/overview/
[CleanUpTimerInterval]:https://docs.nodinite.com/administration/settings/system-parameters/cleanuptimerinterval/
[Data Retention]:https://docs.nodinite.com/core-services/logging-service/overview/#data-retention
[DaysToKeepErrorEventsWithoutData]:https://docs.nodinite.com/administration/settings/system-parameters/daystokeeperroreventswithoutdata/
[DaysToKeepLogAudits]:https://docs.nodinite.com/administration/settings/system-parameters/daystokeeplogaudits/
[DaysToKeepMessageEventsDefault]:https://docs.nodinite.com/administration/settings/system-parameters/daystokeepmessageeventsdefault/
[Log Agent]:https://docs.nodinite.com/administration/log-management/log-agents/features/what-is-a-log-agent/
[Log Event]:https://docs.nodinite.com/core-services/log-event/overview/
[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/
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/