Skip to content
Documentation
Updated 3 minutes to read
Markdown

The CleanUpTimerInterval System Parameter sets the time, in milliseconds, between two cleanup runs of the Logging Service. Each cleanup run deletes logged data that is older than its retention setting; the retention rules themselves are described in the Logging Service Data Retention section.

A Log View with three test orders from three days ago, on a Message Type that keeps events 1 day; CleanUpTimerInterval opened from the System Parameters list, changed from 3600000 to 600000 and saved; after the next cleanup run the Log View finds no result, and Log Audit Search shows the entry Removed 3 Events of Message Type 'Contoso.OrderDesk.TestOrder/2.0' older than 1 day(s), by Log_MessageData_DeleteOldEventsAndData, animated walkthrough (7.12)
Animated walkthrough: with a shorter interval, the next cleanup run removes the expired test orders, and the Log Audit records what it removed.

Property Value
Key CleanUpTimerInterval
Data type integer (milliseconds)
Default 3600000 (1 hour)
Read by Logging Service
Takes effect The Logging Service checks the value every 10 minutes; no restart needed
Status ✅ Active

The Logging Service wakes every 10 minutes and starts a cleanup run when the interval has passed since the end of the previous run. A cleanup also runs each time the Logging Service starts. Because of the 10-minute wake-up, a value below 600000 still gives about one run every 10 minutes.

Each cleanup run of the Logging Service deletes, in the Log Databases:

The Log Audit records each run. The run starts with Started to clean Log Database '…' and ends with Completed the cleaning of Log Database '…'. In between, each Message Type with expired events gets one entry. From 7.13 it reads Selected N Events of Message Type '…' (Id N) for removal, older than N day(s) (…), in Log Database '…' on server '…'. Before 7.13 it read Removed N Events of Message Type '…' older than N day(s). A related setting, CleanUpOverdueInterval (default 24 hours), decides whether a cleanup may interrupt event processing that is working off a backlog.

This parameter sets only how often the cleanup runs, not how long data is kept. Monitor Events are not part of this cleanup: the Monitoring Service purges them every hour, based on DaysToKeepMonitorEvents.

  • Keep the default 3600000 (1 hour) unless you have a reason to change it.
  • A longer interval lets expired data stay in the Log Database a little longer and makes each cleanup run delete more rows at once.
  • A shorter interval spreads the deletes over more, smaller runs. Consider it when expired data piles up between runs on a busy system, and avoid very short intervals that keep the database busy with cleanup.

...

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