# Logstash as service Advantages

**URL:** <https://discuss.elastic.co/t/logstash-as-service-advantages/84661>\
**Category:** Logstash\
**Created:** [May 5, 2017, 6:36am UTC](https://discuss.elastic.co/t/logstash-as-service-advantages/84661 "2017-05-05T06:36:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kishore](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@Kishore](https://discuss.elastic.co/u/Kishore)\
**Post date:** [May 5, 2017, 6:36am UTC](https://discuss.elastic.co/t/logstash-as-service-advantages/84661/1 "2017-05-05T06:36:36Z")

</div>

Please advise me that, what are all the advantages to run the logstash as service instead of process.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 5, 2017, 7:19am UTC](https://discuss.elastic.co/t/logstash-as-service-advantages/84661/2 "2017-05-05T07:19:07Z")

</div>

And by "running it as a process" you mean running it in a terminal window?

---

<div class="post-metadata">

**Author:** ![Kishore](https://avatars.discourse-cdn.com/v4/letter/k/8edcca/32.png) [@Kishore](https://discuss.elastic.co/u/Kishore)\
**Post date:** [May 5, 2017, 9:10am UTC](https://discuss.elastic.co/t/logstash-as-service-advantages/84661/3 "2017-05-05T09:10:31Z")

</div>

Yes, using below command to run as process.

./bin/logstash -f /etc/logstash/conf.d/unix-logstash.conf

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [May 5, 2017, 9:19am UTC](https://discuss.elastic.co/t/logstash-as-service-advantages/84661/4 "2017-05-05T09:19:10Z")

</div>

Well, that only works as long as you're logged into the computer and don't close that terminal window. If you want Logstash to run all the time the only reasonable way is to run it as a service.

---

<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:** [June 2, 2017, 9:31am UTC](https://discuss.elastic.co/t/logstash-as-service-advantages/84661/5 "2017-06-02T09:31:56Z")

</div>

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