# Telnet logstash not working

**URL:** <https://discuss.elastic.co/t/telnet-logstash-not-working/78281>\
**Category:** Logstash\
**Created:** [March 12, 2017, 3:06pm UTC](https://discuss.elastic.co/t/telnet-logstash-not-working/78281 "2017-03-12T15:06:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rrs](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@rrs](https://discuss.elastic.co/u/rrs)\
**Post date:** [March 12, 2017, 3:06pm UTC](https://discuss.elastic.co/t/telnet-logstash-not-working/78281/1 "2017-03-12T15:06:01Z")

</div>

Hello,

I installed logstash as per documentation and service started successfully. But, when we trying telnet localhost 5044, it is not working and the netstat also showing nothing. Can you please suggest me how to fix it. I double checked none of iptables and selinux running.

[root@logstash ~]# /opt/logstash/bin/logstash -f /etc/logstash/conf.d/first\_pipe.conf --configtest  
Configuration OK

[root@logstash ~]# netstat -antp  
Active Internet connections (servers and established)  
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name  
tcp 0 0 0.0.0.0:22 0.0.0.0:\* LISTEN 1263/sshd  
tcp 0 64 192.168.94.163:22 192.168.94.1:55332 ESTABLISHED 1588/sshd  
tcp 0 0 :::22 :::\* LISTEN 1263/sshd

[root@logstash ~]# telnet logstash 5044  
Trying 192.168.94.163...  
telnet: connect to address 192.168.94.163: Connection refused

---

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [March 12, 2017, 4:21pm UTC](https://discuss.elastic.co/t/telnet-logstash-not-working/78281/2 "2017-03-12T16:21:55Z")

</div>

your netstat does not show it is listening on port 5044, did you run the command without the configtest? also can you provide your config file. is there anything in the log file or output when running the command?

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [March 12, 2017, 4:27pm UTC](https://discuss.elastic.co/t/telnet-logstash-not-working/78281/3 "2017-03-12T16:27:51Z")

</div>

Have you run `ps auwwx | grep java | grep logstash` to see if Logstash is actually running?

---

<div class="post-metadata">

**Author:** ![rrs](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@rrs](https://discuss.elastic.co/u/rrs)\
**Post date:** [March 13, 2017, 2:39pm UTC](https://discuss.elastic.co/t/telnet-logstash-not-working/78281/4 "2017-03-13T14:39:41Z")

</div>

Thank you. I doubled checked the service is running fine with the above command you mentioned.

---

<div class="post-metadata">

**Author:** ![rayl7786](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@rayl7786](https://discuss.elastic.co/u/rayl7786)\
**Post date:** [March 13, 2017, 2:44pm UTC](https://discuss.elastic.co/t/telnet-logstash-not-working/78281/5 "2017-03-13T14:44:13Z")

</div>

I have noticed when my logstash is running but netstat shows it is not listening that there is an issue with the logstash filter. Can you provide first\_pipe.conf with any sensitive information taken out?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 10, 2017, 2:44pm UTC](https://discuss.elastic.co/t/telnet-logstash-not-working/78281/6 "2017-04-10T14:44:15Z")

</div>

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