# How to run logstash in background in unix?

**URL:** <https://discuss.elastic.co/t/how-to-run-logstash-in-background-in-unix/180779>\
**Category:** Logstash\
**Created:** [May 13, 2019, 9:59am UTC](https://discuss.elastic.co/t/how-to-run-logstash-in-background-in-unix/180779 "2019-05-13T09:59:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![mandar.raj](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@mandar.raj](https://discuss.elastic.co/u/mandar.raj)\
**Post date:** [May 13, 2019, 9:59am UTC](https://discuss.elastic.co/t/how-to-run-logstash-in-background-in-unix/180779/1 "2019-05-13T09:59:12Z")

</div>

How to run logstash in background in unix ?

---

<div class="post-metadata">

**Author:** ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)\
**Post date:** [May 13, 2019, 10:57am UTC](https://discuss.elastic.co/t/how-to-run-logstash-in-background-in-unix/180779/2 "2019-05-13T10:57:30Z")

</div>

Hi @mandar.raj,

To run the process in background we use **"&"** after command. However, may i know how you install the logstash like RPM, tar etc..

Regards,  
Harsh Bajaj

---

<div class="post-metadata">

**Author:** ![mandar.raj](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@mandar.raj](https://discuss.elastic.co/u/mandar.raj)\
**Post date:** [May 15, 2019, 5:52am UTC](https://discuss.elastic.co/t/how-to-run-logstash-in-background-in-unix/180779/3 "2019-05-15T05:52:22Z")

</div>

I used tar to install logstash, can you please help me with command.

Currently i am using ./bin/logstash -f /var/app/logstash-6.6.0/logstash-config.properties

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 15, 2019, 6:01am UTC](https://discuss.elastic.co/t/how-to-run-logstash-in-background-in-unix/180779/4 "2019-05-15T06:01:12Z")

</div>

What operating system are you running on?

---

<div class="post-metadata">

**Author:** ![mandar.raj](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@mandar.raj](https://discuss.elastic.co/u/mandar.raj)\
**Post date:** [May 15, 2019, 6:23am UTC](https://discuss.elastic.co/t/how-to-run-logstash-in-background-in-unix/180779/5 "2019-05-15T06:23:40Z")

</div>

Unix

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 15, 2019, 7:03am UTC](https://discuss.elastic.co/t/how-to-run-logstash-in-background-in-unix/180779/6 "2019-05-15T07:03:03Z")

</div>

Please be more specific about the platform and type of unix. As far as I know no parts of the Elastic stack is tested on any flavour of Unix so there is no guarantee it will work at all. I would recommend instead deploying it on a supported platform form, e.g. Linux on x86\_64.

---

<div class="post-metadata">

**Author:** ![mandar.raj](https://avatars.discourse-cdn.com/v4/letter/m/82dd89/32.png) [@mandar.raj](https://discuss.elastic.co/u/mandar.raj)\
**Post date:** [May 15, 2019, 8:03am UTC](https://discuss.elastic.co/t/how-to-run-logstash-in-background-in-unix/180779/7 "2019-05-15T08:03:46Z")

</div>

-sh-4.1$ cat \*-release  
LSB\_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch  
Red Hat Enterprise Linux Server release 6.10 (Santiago)  
Red Hat Enterprise Linux Server release 6.10 (Santiago)

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 15, 2019, 8:24am UTC](https://discuss.elastic.co/t/how-to-run-logstash-in-background-in-unix/180779/8 "2019-05-15T08:24:46Z")

</div>

OK, so you are using Linux and not Unix. Then I would recommend you install it using RPM. It handles a lot of this for you.

---

<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 12, 2019, 8:24am UTC](https://discuss.elastic.co/t/how-to-run-logstash-in-background-in-unix/180779/9 "2019-06-12T08:24:49Z")

</div>

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