How to start LS1.5 as a background task


(James) #1

We are using Linux with LogStash 1.5.4. We are trying to setup Logstash to run as a background process on this server. We ahve tried to start service as the regular background task like this:

nohup ./bin/logstash -f basic1.conf & 

But this doesn't work for some reason - it throws and exception like this:

{:timestamp=>"2015-11-04T16:38:07.362000-0500", :message=>"A plugin had an unrecoverable error. Will restart this plugin.\n  Plugin: <LogStash::Inputs::Stdin debug=>false, codec=><LogStash::Codecs::Line charset=>\"UTF-8\">>\n  Error: Unknown error - Bad file descriptor", :level=>:error}

What is the right way to start LS as a daemon process?


(Magnus B├Ąck) #2

If possible, install the RPM or the Debian package and use the init script bundled with either, allowing you to start Logstash with

service logstash start

our similar. Consult the documentation for your flavor of Linux.


(system) #3