# Logstash port 5000 not opening

**URL:** <https://discuss.elastic.co/t/logstash-port-5000-not-opening/47201>\
**Category:** Logstash\
**Created:** [April 13, 2016, 7:14am UTC](https://discuss.elastic.co/t/logstash-port-5000-not-opening/47201 "2016-04-13T07:14:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shekade](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@shekade](https://discuss.elastic.co/u/shekade)\
**Post date:** [April 13, 2016, 7:14am UTC](https://discuss.elastic.co/t/logstash-port-5000-not-opening/47201/1 "2016-04-13T07:14:29Z")

</div>

I have been following this link for centos 6

> **[How To Use Logstash and Kibana To Centralize Logs On CentOS 6 | DigitalOcean](https://www.digitalocean.com/community/tutorials/how-to-use-logstash-and-kibana-to-centralize-logs-on-centos-6)**
>
> In this tutorial, we will go over the installation of Logstash 1.4.2 and Kibana 3, and how to configure them to gather and visualize the syslogs of our systems in a centralized location. Logstash is an open source tool for collecting, parsing, and...

When I do  
Service logstash restart -- I cant see port 5000 open  
confirmed by netstat

My conf flies

cat 01-lumberjack-input.conf  
input {  
lumberjack {  
port =\> 5000  
type =\> "logs"  
ssl\_certificate =\> "/etc/pki/tls/certs/logstash-forwarder.crt"  
ssl\_key =\> "/etc/pki/tls/private/logstash-forwarder.key"  
}  
}

* * *

# cat 10-syslog.conf filter{ if [type] == "syslog" { grok { match =\> { "message" =\> "%{SYSLOGTIMESTAMP:syslog\_timestamp} %{SYSLOGHOST:syslog\_hostname} %{DATA:syslog\_program}(?:[%{POSINT:syslog\_pid}])?: %{GREEDYDATA:syslog\_message}" } add\_field =\> ["received\_at", "%{@timestamp}"] add\_field =\> ["received\_from", "%{host}"] } syslog\_pri { } date { match =\> ["syslog\_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss"] } } } [root@logserver conf.d]# output { elasticsearch { host =\> localhost } stdout { codec =\> rubydebug } }

cat logstash.conf  
input {  
lumberjack {  
port =\> 5000  
type =\> "logs"  
ssl\_certificate =\> "/etc/pki/tls/certs/logstash-forwarder.crt"  
ssl\_key =\> "/etc/pki/tls/private/logstash-forwarder.key"  
}  
}

filter{  
if [type] == "syslog" {  
grok {  
match =\> { "message" =\> "%{SYSLOGTIMESTAMP:syslog\_timestamp} %{SYSLOGHOST:syslog\_hostname} %{DATA:syslog\_program}(?:[%{POSINT:syslog\_pid}])?: %{GREEDYDATA:syslog\_message}" }  
add\_field =\> ["received\_at", "%{@timestamp}"]  
add\_field =\> ["received\_from", "%{host}"]  
}  
syslog\_pri { }  
date {  
match =\> ["syslog\_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss"]  
}  
}  
}

output {  
elasticsearch { host =\> localhost }  
stdout { codec =\> rubydebug }  
}

[root@logserver conf.d]#

==================

Kindly help

---

<div class="post-metadata">

**Author:** ![shekade](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@shekade](https://discuss.elastic.co/u/shekade)\
**Post date:** [April 13, 2016, 7:22am UTC](https://discuss.elastic.co/t/logstash-port-5000-not-opening/47201/2 "2016-04-13T07:22:09Z")

</div>

And iptables is disabled

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 13, 2016, 7:45am UTC](https://discuss.elastic.co/t/logstash-port-5000-not-opening/47201/3 "2016-04-13T07:45:00Z")

</div>

Check the Logstash logs (in /var/log/logstash) for clues.

---

<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:** [July 6, 2017, 5:02am UTC](https://discuss.elastic.co/t/logstash-port-5000-not-opening/47201/4 "2017-07-06T05:02:31Z")

</div>


