# Logstash fails to start when passed -l option

**URL:** <https://discuss.elastic.co/t/logstash-fails-to-start-when-passed-l-option/52863>\
**Category:** Logstash\
**Created:** [June 15, 2016, 12:57pm UTC](https://discuss.elastic.co/t/logstash-fails-to-start-when-passed-l-option/52863 "2016-06-15T12:57:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Doyle](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@Daniel\_Doyle](https://discuss.elastic.co/u/Daniel_Doyle)\
**Post date:** [June 15, 2016, 12:57pm UTC](https://discuss.elastic.co/t/logstash-fails-to-start-when-passed-l-option/52863/1 "2016-06-15T12:57:22Z")

</div>

Hi there,

I'm experiencing some issues getting logstash to start as a system service on CentOS 7.2. My configuration is correct and I can start logstash from the bin folder, passing my conf.d directory as -f, however when the -l parameter is passed (in this case -l /var/log/logstash/logstash.log) logstash silently fails with no error messages. I have checked the permissions of the log file and it's owned by logstash.

Anybody have any ideas?

Thanks

---

<div class="post-metadata">

**Author:** ![Daniel\_Doyle](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@Daniel\_Doyle](https://discuss.elastic.co/u/Daniel_Doyle)\
**Post date:** [June 15, 2016, 1:36pm UTC](https://discuss.elastic.co/t/logstash-fails-to-start-when-passed-l-option/52863/2 "2016-06-15T13:36:14Z")

</div>

Never mind, restarting CentOS cured it!

---

<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, 4:52am UTC](https://discuss.elastic.co/t/logstash-fails-to-start-when-passed-l-option/52863/3 "2017-07-06T04:52:42Z")

</div>

Closed on July 6, 2017, 4:52am UTC


