I have two interfaces eth0 and eth2. Network traffic of systems reaching to eth2 interface.
I have Logstash instance which was working good for network traffic of default network interface (eth0).
My requirement is logstash should listen eth2 interface and forward to Elasticsearch. Logstash is accepting syslog information on 5000 port. I am able to see the logstash output on sending message using netcat on 5000 port.
In which protocol do you need to listen on the eth2? What is the IP address of the eth2 interface?
You have two different inputs, the tcp input is binding only to the IP 192.168.77.3 so it will only listen on this IP address.
The udp input is binding to every IP address available on the server, the default value for the host setting is 0.0.0.0.
I would suggest that you remove the host setting from the tcp input and see if it works, it will make logstash bind on port 5000 using tcp in every IP address available on the server.
This log tells that logstash was able to bind to the port 5000 in all IP address available using UDP, there is no binding problem.
If you are using UDP to send logs from a source server or device and your logstash server is not receiving it, then you can have some network issue, any firewall or route problem, you will need to check that.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.