- 3 minutes to read

DaysToKeepMessageEventsDefault - System Parameter

The DaysToKeepMessageEventsDefault System Parameter defines the default retention period (in days) for message events within Nodinite Log Databases. Once an event surpasses this threshold, it is automatically deleted along with its associated data/body and context. This value is set as the default for new Message Types but can be adjusted individually per Message Type.

Note

When the system deletes a Log Event, any payload (body) and context (key-value) are also removed. You can opt to remove data and context earlier; see DaysToKeepMessageDataDefault and DaysToKeepMessageContextDefault for more options.

System Parameter Name Data Type Values/Example Comment
DaysToKeepMessageEventsDefault Integer 14 Default = 14 (14 days)

Important

You must restart the Nodinite Logging Service after changing this value for the new setting to take effect.

Balancing Retention & Performance

Data retention is a critical balance between business needs and system performance. Keeping logs for extended periods ensures traceability and compliance, but excessive data accumulation can impact system speed and require additional storage. Nodinite’s approach allows you to define a strategy that meets operational and regulatory needs while maintaining system efficiency.

Why This Matters for Your Business

Optimized System Performance – Avoid SQL Server slowdowns caused by excessive log data.
Controlled Storage Growth – Prevent unnecessary disk space consumption by automatically removing old Log Events.
Regulatory Compliance – Ensure retention policies align with business and legal requirements.
Granular Data Management – Configure retention per Message Type to keep only what truly matters.
Reduced Risk of System Overload – Avoid Log Databases growing indefinitely and impacting processing speeds.

Scalability & Automation

Nodinite is designed to handle large volumes of logged data by automatically creating new databases when existing ones grow too large. Proper data retention minimizes administrative effort and ensures smooth, long-term operation. The message type-based deletion strategy lets you focus on retaining only valuable data.

Warning

If you log more data than you delete, your Log Database will continue to grow, eventually impacting system performance or running out of disk space.

Best Practice Recommendation

We at Nodinite recommend setting a retention period of 14 days (default) for most environments. This default aligns with best practices for balancing log retention and system efficiency, as recommended in the Install and Update Tool.

You can use the Nodinite Database Monitoring Agent to get alerts when databases grow too large and the Nodinite Windows Server Monitoring Agent to get alerts before you run out of disk space.

History

  • This feature is available from Nodinite version 3.

Frequently Asked Questions

Find more solutions and answers in the Nodinite System Parameters FAQ and the Troubleshooting user guide.

How do I change the value?

Changing a value for the pre-defined System Parameters is described in the generic 'How do I change the System Parameters' article.


Next Step

Message Types
DaysToSplitDatabaseOn
DaysToKeepMessageContextDefault
DaysToKeepMessageDataDefault
Administration