Skip to content
Documentation
Updated 3 minutes to read
Markdown

DaysToKeepMessageEventsDefault - System Parameter

Section titled “DaysToKeepMessageEventsDefault - System Parameter”

The DaysToKeepMessageEventsDefault System Parameter sets the default Days to keep Events value that Nodinite copies onto every new Message Type. The Logging Service deletes processed Log Events once they are older than their Message Type's own value.

DaysToKeepMessageEventsDefault opened from the System Parameters list, raised from 14 to 30 and saved, then the Message Types list filtered on Contoso.Returns with a Message Type the Logging Service created from a new event showing Events 30 while an existing Message Type keeps Events 14, and the value set back to 14, animated walkthrough (7.12)
Animated walkthrough: after the value is raised from 14 to 30, a Message Type that the Logging Service creates from a new event gets 30 days for its events. The Message Type that already existed keeps 14.

Property Value
Key DaysToKeepMessageEventsDefault
Data type integer (days)
Default 14
Read by Logging Service, when it creates a Message Type from a new event; Web Client, to pre-fill Days to keep Events in Add or manage Message Type
Takes effect About 15 seconds, for Message Types created after the change (up to 5 minutes for Message Types the BizTalk Endpoint sync creates); no restart needed
Status ✅ Active
Since Nodinite 3
  • A seed, not a live setting. Nodinite copies the value onto a Message Type only when the Message Type is created. Changing the parameter never changes existing Message Types; adjust those one at a time in Add or manage Message Type.
  • Events own their body and context. Each Message Type has three retention values: Events, Data (the message body), and Context (the key-value context properties). When the cleanup run deletes a Log Event, it deletes the event's body and context with it. DaysToKeepMessageDataDefault and DaysToKeepMessageContextDefault let you remove body and context earlier, so keep both at or below this value.
  • Only processed events are deleted, on each cleanup run of the Logging Service (see CleanUpTimerInterval). The full retention pipeline is described in the Logging Service Data Retention section.
  • The Web API applies no default. A Message Type created with POST api/MessageTypes stores the retention values the caller sends, so a script must send them itself.
  • No restart. The Logging Service and the Add form read a changed value within about 15 seconds.
  • The default 14 days suits most environments. Raise the value on the Message Types that need a longer history instead of raising the default for all of them.
  • A value of 0 makes new Message Types delete their events on the next cleanup run.
  • An empty value makes new Message Types keep their events forever. A negative value, a value that isn't a whole number, or a missing parameter gives the default 14.
  • If you log more than you delete, the Log Database keeps growing until it slows down or the disk is full. Nodinite starts new Log Databases when one becomes too old (DaysToSplitDatabaseOn) or too large (SizeToSplitDatabaseOn), but the disk space for retained data is still yours to manage.

I changed the value. Why are my existing Message Types unchanged?

Section titled “I changed the value. Why are my existing Message Types unchanged?”

Because the value only seeds Message Types at creation time. Open each existing Message Type in Add or manage Message Type and change its Days to keep Events there.

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...