# Logstash not reading .conf-file when running as a service

**URL:** <https://discuss.elastic.co/t/logstash-not-reading-conf-file-when-running-as-a-service/110636>\
**Category:** Logstash\
**Created:** [December 7, 2017, 8:57am UTC](https://discuss.elastic.co/t/logstash-not-reading-conf-file-when-running-as-a-service/110636 "2017-12-07T08:57:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rvarttinen](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@rvarttinen](https://discuss.elastic.co/u/rvarttinen)\
**Post date:** [December 7, 2017, 8:57am UTC](https://discuss.elastic.co/t/logstash-not-reading-conf-file-when-running-as-a-service/110636/1 "2017-12-07T08:57:24Z")

</div>

My apologies if this issue already has been answerd, although I've done some searching and haven't found any other thread with the problem I am experiencing. Similar ones, but not really what I'm looking for ...

So, here it goes:  
I installed the entire ELK-stack using the rpm:s provided. After that everything started up nicely and everything almost works. I.e. part from Logstash seemingly not reading the .conf-file in /etc/logstash/conf.d/ directory.

Tried starting it from the command line and indicating the logstash.conf file in the same directory (-f) and everything works as expected, no problem. Except; Logstash not running as a service ...

So, my question(s):

- How do I indicate in the service script(s) that there is a .conf-file to be honored?
- Could it be permissions missing? (chmod:ed to temporarily allow anything for the .conf-file, to no avail)
- The logstash.yml has not been touched so it is the default one from the installation. Do I need to make some amendments to it for this?

The OS I am currenetly working on: Red Hat Enterprise Linux Server release 7.4 (Maipo)  
Logstash version: 6.0.0  
Command for starting Logstash as a service: systemctl start logstash.service

Thank you in advance for any pointers for solving this, probably, smallish issue.

_Edit: recently found another issue indicating changing owner of directory and .conf-file. Tried it also, but to no avail._

---

<div class="post-metadata">

**Author:** ![rvarttinen](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@rvarttinen](https://discuss.elastic.co/u/rvarttinen)\
**Post date:** [December 13, 2017, 9:13am UTC](https://discuss.elastic.co/t/logstash-not-reading-conf-file-when-running-as-a-service/110636/2 "2017-12-13T09:13:36Z")

</div>

It has been a while now and no replies as yet. Tried some various actions getting Logstash to read my .conf-file located in the directory /etc/logstash/conf.d ... but none seems to work.  
Logsatsh-team: have I missed something crucial? If so, could you please send a pointer to the docs or whatever I should read up on.

---

<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:** [January 10, 2018, 9:14am UTC](https://discuss.elastic.co/t/logstash-not-reading-conf-file-when-running-as-a-service/110636/3 "2018-01-10T09:14:13Z")

</div>

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