# Logstash not working as a service

**URL:** <https://discuss.elastic.co/t/logstash-not-working-as-a-service/103560>\
**Category:** Logstash\
**Created:** [October 11, 2017, 1:46pm UTC](https://discuss.elastic.co/t/logstash-not-working-as-a-service/103560 "2017-10-11T13:46:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amar4d4](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@Amar4d4](https://discuss.elastic.co/u/Amar4d4)\
**Post date:** [October 11, 2017, 1:46pm UTC](https://discuss.elastic.co/t/logstash-not-working-as-a-service/103560/1 "2017-10-11T13:46:18Z")

</div>

logstash is working fine for a process when started through command but it is not logging when it is run as a service using sudo systemctl start logstash.service

It is active when i given above command but it is not logging the logs and i changed the logstash.service  
ExecStart=/usr/share/logstash/bin/logstash -f config path

---

<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 8, 2017, 1:46pm UTC](https://discuss.elastic.co/t/logstash-not-working-as-a-service/103560/2 "2017-11-08T13:46:32Z")

</div>

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