How to run logstash in background in unix?

(Mandar Betageri) #1

How to run logstash in background in unix ?

(Harsh Bajaj) #2

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

(Mandar Betageri) #3

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

(Christian Dahlqvist) #4

What operating system are you running on?

(Mandar Betageri) #5

Unix

(Christian Dahlqvist) #6

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.

(Mandar Betageri) #7

-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)

(Christian Dahlqvist) #8

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.