Run logstash forwarder and web as a daemon on ubuntu -


i using logstash-1.4.2. in don't standard monolithic or flat jar used case earlier. now, want start logstash forwarder service.

bin/logstash -f logforwareder.conf 

above command runs in foreground. gets killed everytime close/exit terminal.

similarly, logstash indexer how achieve same.

  bin/logstash -f indexer.conf web 

this command kills indexer once terminal closed.

on ubuntu, don't forget have own configuration file @ /etc/logstash-forwarder (without .conf).

{   "network":   {      "servers": [        "logstash.server.ip:5000"      ],      "ssl ca":        "/etc/ssl/certs/logstash-forwarder.crt",      "timeout": 15   },   "files": [     {       "paths": [          "/var/log/apache2/access_web1.log",          "/var/log/apache2/access_web2.log"       ],       "fields": {          "type": "apache",          "environment": "production"       }    }   ] } 

you can check script see looking config file:

vi /etc/init.d/logstash-forwarder 

Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -