Hi,
I'm having a problem with the logstash tcp output plugin, the reconnect_interval does not seem to have an affect on the plugin's actual reconnect attempts? I may be misunderstanding what the field is used for exactly but no matter what I set it to I see the following pattern of reconnect attempts if the TCP server I'm trying to connect to is down:
Failed (Connection refused - connect(2) for "10.0.20.158" port 13370). Sleeping for 0.02
Failed (Connection refused - connect(2) for "10.0.20.158" port 13370). Sleeping for 0.04
Failed (Connection refused - connect(2) for "10.0.20.158" port 13370). Sleeping for 0.08
Failed (Connection refused - connect(2) for "10.0.20.158" port 13370). Sleeping for 0.16
Failed (Connection refused - connect(2) for "10.0.20.158" port 13370). Sleeping for 0.32
Failed (Connection refused - connect(2) for "10.0.20.158" port 13370). Sleeping for 0.64
Failed (Connection refused - connect(2) for "10.0.20.158" port 13370). Sleeping for 1.28
Failed (Connection refused - connect(2) for "10.0.20.158" port 13370). Sleeping for 2.0
Failed (Connection refused - connect(2) for "10.0.20.158" port 13370). Sleeping for 2.0
Failed (Connection refused - connect(2) for "10.0.20.158" port 13370). Sleeping for 2.0
Here is an example of the output plugin's config:
output {
stdout { codec => rubydebug }
tcp {
host => "${TCP_OUTPUT_HOST}"
port => "${TCP_OUTPUT_PORT}"
reconnect_interval => "15"
mode => "client"
codec => "plain
}
}

Well spotted. That's interesting, I've left it running for long periods and it seems to stay on 2.0s indefinitely, and doesn't seem to throw an exception at all. Not sure if that's expected/unexpected behaviour here