How to test UDP input for logstash

I want to send messages into logstash listening on localhost UDP port to test that it works. I'm on linux and would like to use ncat, how can I do it? Maybe it's wrong but echo test | ncat -v -u localhost 5999 has an error.

Ncat: Version 7.60 ( https://nmap.org/ncat )
Ncat: Connected to ::1:5999.
Ncat: Connection refused.

I think if you change from localhost to your interface's ip address, it will work. Or, set the host setting for the udp plugin to localhost / 127.0.0.1 / ::1.

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