Information: Forum is in read-only mode
For details and other support options see

Request additional keepalive options for imtcp module

This is the place for developers to discuss bugs, new features and everything else about code changes.

Moderator: alorbach

Google Ads

Request additional keepalive options for imtcp module

Postby SamBeroz » Sat Nov 22, 2014 11:27 pm

As an enhancement it would be nice if imtcp supported the following options similar to imptcp:

KeepAlive.Probes <number>
KeepAlive.Interval <number>
KeepAlive.Time <number>

I have some data sources that are not very chatty and as a result they were timing out after 15 minutes of inactivity. This resulted in the following error messages:

Nov 22 16:34:48 logservice rsyslogd-2078: netstream session 0x7f4df800bbf0 will be closed due to error [try ]
Nov 22 17:26:01 logservice rsyslogd-2089: netstream session 0x7f4df8005050 will be closed due to error [try ]

After I figured out what was happening I added keepalive="on" to the imtcp load:

module(load="imtcp" MaxSessions="500" StreamDriver.Mode="1" StreamDriver.AuthMode="anon" keepalive="on")

But there's apparently no way to override the system defaults from the rsyslog config (similar to those for imptcp) so I had to modify the value in:


to something less than 15 minutes. That corrected things but I'd much rather have my config in a single file rather then remembering to also edit /etc/sysctl.conf.

Thanks - Sam
Posts: 1
Joined: Sat Nov 22, 2014 10:50 pm

Urgent Question?

  • Pulling out your Hair?
  • Wasting Time and Money?
  • Deadline Approaching?

Google Ads

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 0 guests