AbortTimeout

Starts a watchdog thread that aborts rsyslog if it runs longer than the configured time limit.

This parameter applies to imdiag: Diagnostic instrumentation.

Name:

AbortTimeout

Scope:

module

Type:

integer (seconds)

Default:

module=none (disabled)

Required?:

no

Introduced:

at least 5.x, possibly earlier

Description

When set, AbortTimeout installs a guard thread that tracks the runtime of the rsyslog instance. The timer starts as soon as this configuration parameter is loaded and applies for the entire process runtime. If rsyslog remains active for longer than the configured number of seconds after the guard starts, the thread writes a status message to stderr and terminates the daemon with abort(). The guard is intended for automated test environments to detect deadlocks or hangs.

The guard can only be configured once during the lifetime of the process. A second attempt to configure the watchdog is ignored and logs an error. Values less than or equal to zero are rejected.

Module usage

module(load="imdiag" abortTimeout="600")

Legacy names (for reference)

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

  • $IMDiagAbortTimeout — maps to AbortTimeout (status: legacy)

See also

See also imdiag: Diagnostic instrumentation.


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

Contributing: Source & docs: rsyslog source project

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