# Logstash: unrecognized service

**URL:** <https://discuss.elastic.co/t/logstash-unrecognized-service/83144>\
**Category:** Logstash\
**Created:** [April 21, 2017, 5:06am UTC](https://discuss.elastic.co/t/logstash-unrecognized-service/83144 "2017-04-21T05:06:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaonbean](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaonbean/32/14416_2.png) [@shaonbean](https://discuss.elastic.co/u/shaonbean)\
**Post date:** [April 21, 2017, 5:06am UTC](https://discuss.elastic.co/t/logstash-unrecognized-service/83144/1 "2017-04-21T05:06:06Z")

</div>

# CentOS 6.9 use elastic repo install logstash,but logstash daemon service can't not found .when execte sudo service logstash start ,error logstash: unrecognized service

#

---

<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:** [April 21, 2017, 9:36pm UTC](https://discuss.elastic.co/t/logstash-unrecognized-service/83144/2 "2017-04-21T21:36:58Z")

</div>

That's because Logstash auto-detected that CentOS 6 uses [upstart](https://www.elastic.co/guide/en/logstash/current/running-logstash.html)

You can manually force Logstash to create a SysV init file by running:

```auto
/usr/share/logstash/bin/system-install /etc/logstash/startup.options sysv 

```

You can then force it to regard this as a service, if you need to.

---

<div class="post-metadata">

**Author:** ![shaonbean](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaonbean/32/14416_2.png) [@shaonbean](https://discuss.elastic.co/u/shaonbean)\
**Post date:** [April 24, 2017, 6:00am UTC](https://discuss.elastic.co/t/logstash-unrecognized-service/83144/3 "2017-04-24T06:00:42Z")

</div>

thank you every much!

---

<div class="post-metadata">

**Author:** ![shaonbean](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaonbean/32/14416_2.png) [@shaonbean](https://discuss.elastic.co/u/shaonbean)\
**Post date:** [April 24, 2017, 7:42am UTC](https://discuss.elastic.co/t/logstash-unrecognized-service/83144/4 "2017-04-24T07:42:38Z")

</div>

I have other issue, logstash can't not stop, even if I use kill logstash pid, wait a miutes logstash will auto start. It bothered me

---

<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:** [April 24, 2017, 3:45pm UTC](https://discuss.elastic.co/t/logstash-unrecognized-service/83144/5 "2017-04-24T15:45:54Z")

</div>

As this is unrelated to the original topic, please start another thread.

---

<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:** [May 22, 2017, 3:56pm UTC](https://discuss.elastic.co/t/logstash-unrecognized-service/83144/6 "2017-05-22T15:56:14Z")

</div>

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