Number of open sockets

I'm getting regularly such output

>worker0] elasticsearch - Failed to perform request {:message=>"Connection reset", :exception=>Manticore::SocketException, :cause=>
[WARN ] 2022-11-29 18:33:45.720 [[my_pipeline]>worker0] elasticsearch - Marking url as dead. Last error: [LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError] Elas30.226:9240/_bulk][Manticore::SocketException] Connection reset {:url=>http://e

in the logstash logs . I didn't find any suspicious point in the pcap logs between logstash container - elasticsearch 3 master nodes.
I'm very curious how to check open sockets/connection to elasticsearch nodes?

by default logstash open connection is 16384 you can bump that up from startup file "logstash.service"


also you can bump up your open socket connection in limits.conf
logstash soft nofile 102400
logstash hard nofile 202400

you can find open connection using netstat.
netstat -a |grep ESTABLISHED | wc -l

you can also use lsof command

do You know maybe where should I check it under officially logstash docker container?

I am not familiar with docker

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.