How to check socket connection between filebeat, logstash and elasticseearch ?
netstat -anp | grep 9200 netstat -anp | grep 5044
a – Show all listening and non-listening sockets
n – numberical address
p – process id and name that socket belongs to
9200 – Elasticsearch port
5044 – Filebeat port
“ESTABLISHED” status for the sockets that established connection between logstash and elasticseearch / filebeat.
“LISTEN” status for the sockets that listening for incoming connections.
To view the count of socket, use