# How to start Logstash?

**URL:** <https://discuss.elastic.co/t/how-to-start-logstash/69653>\
**Category:** Logstash\
**Created:** [December 21, 2016, 9:17am UTC](https://discuss.elastic.co/t/how-to-start-logstash/69653 "2016-12-21T09:17:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michel99\_7](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@Michel99\_7](https://discuss.elastic.co/u/Michel99_7)\
**Post date:** [December 21, 2016, 9:17am UTC](https://discuss.elastic.co/t/how-to-start-logstash/69653/1 "2016-12-21T09:17:02Z")

</div>

Hello,

What is the good practice for executing Logstash: by command line, or possibly by service?

In case I'm using a virtual machine, I'd like that Logstash starts without any need to start a window session on my machine.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 21, 2016, 9:29am UTC](https://discuss.elastic.co/t/how-to-start-logstash/69653/2 "2016-12-21T09:29:24Z")

</div>

Moved to #logstash

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 21, 2016, 11:11pm UTC](https://discuss.elastic.co/t/how-to-start-logstash/69653/3 "2016-12-21T23:11:19Z")

</div>

By service is the best in this case.

---

<div class="post-metadata">

**Author:** ![Michel99\_7](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@Michel99\_7](https://discuss.elastic.co/u/Michel99_7)\
**Post date:** [January 4, 2017, 11:54am UTC](https://discuss.elastic.co/t/how-to-start-logstash/69653/4 "2017-01-04T11:54:28Z")

</div>

I assume using a tool like NSSM?

Thanks a lot.

---

<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:** [February 1, 2017, 11:54am UTC](https://discuss.elastic.co/t/how-to-start-logstash/69653/5 "2017-02-01T11:54:52Z")

</div>

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