---
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.

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

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

## :fa-gears: 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 :Nodinite: 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.

## :fa-lightbulb: 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.

>[!WARNING]
>Deleted data cannot be recovered. A value that is too low can delete BizTalk message data before its events arrive.

## :fa-question: 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.

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

* :fab fa-microsoft: [BizTalk Server Logging][]  
* :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-envelope-open-text: [DaysToKeepMessageEventsDefault][]  
* :fa-user-tag: [DaysToKeepLogAudits][]  
* :fa-wrench: [BizTalk Logging Troubleshooting][]  
* :fa-hard-drive: [Logging Service][]  
* :fa-cog: [System Parameters][]  

[BizTalk Logging Troubleshooting]:{ndr}/Logging%20and%20Monitoring/Microsoft%20BizTalk%20Server%20-%20Logging/Troubleshooting/Overview.md#copying-body-and-context-has-been-interrupted
[BizTalk Server Logging]:{ndr}/Logging%20and%20Monitoring/Microsoft%20BizTalk%20Server%20-%20Logging/Overview.md
[CleanUpTimerInterval]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/CleanUpTimerInterval.md
[Data Retention]:{ndr}/Core%20Services/Logging%20Service/Overview.md#data-retention
[DaysToKeepErrorEventsWithoutData]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DaysToKeepErrorEventsWithoutData.md
[DaysToKeepLogAudits]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DaysToKeepLogAudits.md
[DaysToKeepMessageEventsDefault]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DaysToKeepMessageEventsDefault.md
[Log Agent]:{ndr}/Administration/1.%20Log%20Management/3.%20Log%20Agents/Features/What%20is%20a%20Log%20Agent.md
[Log Event]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[Manage System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Manage%20System%20Parameters.md
[Message Type]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Overview.md