flushInterval

Defines, in seconds, the interval after which unwritten data is flushed.

This parameter applies to omfile: File Output Module.

Name:

flushInterval

Scope:

action

Type:

integer

Default:

action=1

Required?:

no

Introduced:

at least 5.x, possibly earlier

Description

Defines, in seconds, the interval after which unwritten data is flushed.

This parameter is applied when asyncWriting is enabled for the action. Use flushInterval together with asyncWriting="on" when flushOnTXEnd is disabled, for example to keep gzip compression effective while still bounding how long buffered data may remain unflushed.

Action usage

action(type="omfile" file="/var/log/app.log"
       asyncWriting="on" flushOnTXEnd="off" flushInterval=1)

YAML usage

actions:
  - type: omfile
    file: /var/log/app.log
    asyncWriting: "on"
    flushOnTXEnd: "off"
    flushInterval: 1

Legacy names (for reference)

Historic names/directives for compatibility. Do not use in new configs.

  • $OMFileFlushInterval — maps to flushInterval (status: legacy)

See also

See also omfile: File 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.