# Cant‘s create logstash service in Centos 6

**URL:** <https://discuss.elastic.co/t/cant-s-create-logstash-service-in-centos-6/152144>\
**Category:** Logstash\
**Created:** [October 12, 2018, 3:23am UTC](https://discuss.elastic.co/t/cant-s-create-logstash-service-in-centos-6/152144 "2018-10-12T03:23:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haitianisgood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/haitianisgood/32/33563_2.png) [@Haitianisgood](https://discuss.elastic.co/u/Haitianisgood)\
**Post date:** [October 12, 2018, 3:23am UTC](https://discuss.elastic.co/t/cant-s-create-logstash-service-in-centos-6/152144/1 "2018-10-12T03:23:34Z")

</div>

ENV:

```auto
CentOS release 6.8 (Final) 64bit
logstash 6.4.2

```

I installed logstash with yum.

I executed `service logstash start`,but it reported `logstash: unrecognized service`.

I had executed `initctl start logstash` but not work as  
[https://www.elastic.co/guide/en/logstash/6.4/running-logstash.html](https://www.elastic.co/guide/en/logstash/6.4/running-logstash.html)

so I do `/usr/share/logstash/bin/system-install /etc/logstash/startup.options sysv` follow  
[https://discuss.elastic.co/t/although-installing-logstash-i-get-logstash-unrecognized-service/76282](https://discuss.elastic.co/t/although-installing-logstash-i-get-logstash-unrecognized-service/76282)  
It have create a file `/etc/init.d/logstash`,but I just receive`logstash started` either it did't work( I did't see logstash process when check it `ps axu|grep logstash`)when I executed `service logstash start`

---

<div class="post-metadata">

**Author:** ![Makra](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@Makra](https://discuss.elastic.co/u/Makra)\
**Post date:** [October 14, 2018, 3:46am UTC](https://discuss.elastic.co/t/cant-s-create-logstash-service-in-centos-6/152144/2 "2018-10-14T03:46:46Z")

</div>

What is the output of service logstash status ? If it is active/started then create a stream input on TCP port (9999, 9991...) and check if the port is listening using netstat command. Otherwise make logging of logstash to debug mode and dig the log files (/var/log/logstash/logstash-plain.log) for possible errors.

---

<div class="post-metadata">

**Author:** ![Haitianisgood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/haitianisgood/32/33563_2.png) [@Haitianisgood](https://discuss.elastic.co/u/Haitianisgood)\
**Post date:** [October 19, 2018, 2:48am UTC](https://discuss.elastic.co/t/cant-s-create-logstash-service-in-centos-6/152144/3 "2018-10-19T02:48:24Z")

</div>

Thank you for your reply!!!  
There is no port listening and no anything log output when change to debug mode!

---

<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:** [November 16, 2018, 2:55am UTC](https://discuss.elastic.co/t/cant-s-create-logstash-service-in-centos-6/152144/4 "2018-11-16T02:55:38Z")

</div>

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