idleTimeout

Close an imbeats session when it makes no byte progress for the configured time.

This parameter applies to imbeats: Beats v2 input module.

Name:

idleTimeout

Scope:

input

Type:

nonnegative integer

Default:

input=60

Required?:

no

Introduced:

8.2608.0

Description

Set the maximum number of seconds that a client session may remain connected without receiving any new bytes. When the timeout expires, imbeats closes the session and does not acknowledge any incomplete batch. The value 0 disables the idle timeout.

This progress-based timeout applies even when the session has not started a Lumberjack frame. It pauses while a complete, validated batch is submitted to rsyslog and resumes when imbeats prepares the acknowledgement, so slow local processing cannot turn a successfully submitted batch into an unacknowledged retransmission. The resumed interval also bounds a client that stops reading its acknowledgement. Use frameTimeout to place an absolute deadline on a partially received frame.

Time a session spends waiting for a free worker thread is local delay and is not counted against this deadline in two cases: when the session became ready because the peer acted (it sent data, closed, or made room for an acknowledgement), and when the session was requeued by starvation protection after it had already made progress. Busy workers therefore do not turn a well-behaved client into a timeout.

This forgiveness applies where imbeats uses epoll (Linux). The portable poll fallback queues sessions without knowing whether input is available, so its accept and re-arm hand-offs are not forgiven there and an idle peer still times out.

Input usage

RainerScript:

input(type="imbeats" port="5044" idleTimeout="60")

YAML:

inputs:
  - type: imbeats
    port: 5044
    idleTimeout: 60

See also

See also imbeats: Beats v2 input 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.