interval

Sets how many seconds elapse between each write of sender statistics to the state file.

This parameter applies to omsendertrack: Sender Tracking Output Module.

Name:

interval

Scope:

action

Type:

integer

Default:

action=60

Required?:

no

Introduced:

8.2506.0 (Proof-of-Concept)

Description

This parameter defines the interval in seconds after which the module writes the current sender statistics to the configured statefile.

A smaller interval value results in more frequent updates to the state file, reducing potential data loss in case of an unexpected system crash, but it also increases disk I/O. A larger interval reduces I/O but means less up-to-date statistics on disk.

Action usage

module(load="omsendertrack")
template(name="sender-hostname" type="string" string="%hostname%")
action(type="omsendertrack"
       senderId="sender-hostname"
       interval="60"
       stateFile="/var/lib/rsyslog/senderstats.json")

See also

See also omsendertrack: Sender Tracking Output Module.


Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2026 Rainer Gerhards and others. Licensed under the Apache License 2.0.