I am currently using logstash-1.4.2. In which you don't get the standard monolithic or flat jar which used to be the case earlier. Now, i want to start the logstash forwarder as a service.
bin/logstash -f logforwareder.conf
Above command runs it in the foreground. So it gets killed everytime i close/exit the terminal.
Similarly, for the LogStash indexer how do i achieve the same.
bin/logstash -f indexer.conf web
This command also kills indexer once terminal is closed.
On ubuntu, don't forget to have your own configuration file at /etc/logstash-forwarder (without .conf).
You can check the script to see where is it looking for the config file: