# Problem with logstash as a service (RHEL)

**URL:** https://discuss.elastic.co/t/problem-with-logstash-as-a-service-rhel/98351
**Category:** Logstash
**Created:** [August 25, 2017, 8:51am UTC](https://discuss.elastic.co/t/problem-with-logstash-as-a-service-rhel/98351 "2017-08-25T08:51:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sam67000](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Sam67000](https://discuss.elastic.co/u/Sam67000)
#### Post date: [August 25, 2017, 8:51am UTC](https://discuss.elastic.co/t/problem-with-logstash-as-a-service-rhel/98351/1 "2017-08-25T08:51:58Z")

</div>

I have a problem with logstash that I don't understand. It works fine with command but as a service it doesn't work.

I have placed my configuration file in /etc/logstash/conf.d/test.conf  
I have checked the permission and it's ok. I have also checked the logstash log in /var/logstash but there is nothing. I have a logstash-plain.log file but the latest message is from july 5.

Thank you for your help.

---

<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: [August 25, 2017, 3:51pm UTC](https://discuss.elastic.co/t/problem-with-logstash-as-a-service-rhel/98351/2 "2017-08-25T15:51:56Z")

</div>

One culprit may be the `logstash.yml` file. If the entries are not correct, _and properly indented from the far left,_ Logstash will not start properly.

[This thread](https://discuss.elastic.co/t/cannot-run-logstash-as-a-service-with-active-pipeline/98244/7?u=theuntergeek) describes exactly this problem, and it solved things for that user.

---

<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: [September 22, 2017, 3:51pm UTC](https://discuss.elastic.co/t/problem-with-logstash-as-a-service-rhel/98351/3 "2017-09-22T15:51:58Z")

</div>

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