Nothing is using that port,
guyp@ubuntu:/etc/logstash/conf.d$ netstat -an | grep 5140
tcp 0 0 127.0.0.1:9200 127.0.0.1:51406 ESTABLISHED
tcp 0 0 127.0.0.1:9200 127.0.0.1:51400 ESTABLISHED
tcp 0 0 127.0.0.1:51400 127.0.0.1:9200 ESTABLISHED
tcp 0 0 127.0.0.1:51408 127.0.0.1:9200 ESTABLISHED
tcp 0 0 127.0.0.1:9200 127.0.0.1:51408 ESTABLISHED
tcp 0 0 127.0.0.1:51406 127.0.0.1:9200 ESTABLISHED
guyp@ubuntu:/etc/logstash/conf.d$ grep udp /etc/logstash/conf.d/*
/etc/logstash/conf.d/01-inputs.conf: udp {
grep: /etc/logstash/conf.d/patterns: Is a directory
java version "12.0.2" 2019-07-16
Java(TM) SE Runtime Environment (build 12.0.2+10)
Java HotSpot(TM) 64-Bit Server VM (build 12.0.2+10, mixed mode, sharing)
curl: (7) Failed to connect to localhost port 9600: Connection refused
guyp@ubuntu:/etc/logstash/conf.d$ curl http://localhost:9200
{
"name" : "ubuntu",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "L4moMAVoRE-Vqi4NDBUOtw",
"version" : {
"number" : "7.4.0",
"build_flavor" : "default",
"build_type" : "deb",
"build_hash" : "22e1767283e61a198cb4db791ea66e3f11ab9910",
"build_date" : "2019-09-27T08:36:48.569419Z",
"build_snapshot" : false,
"lucene_version" : "8.2.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
I have uninstalled/re-installed logstash and java w/ out success and at a loss.
Thanks