Setting up ELK processes in supervisor

I am trying to daemonise Elastic search, Kibana and Logstash processes using supervisor as they shut down at times due to RAM issues. Below is the supervisord programs for it

[program:elasticsearch]
command=sudo service elasticsearch start 
autostart=true
autorestart=true

[program:nginx]
command=sudo service nginx start

[program:kibana]
command=sudo service kibana start

[program:logstash]
command=sudo /usr/share/logstash/bin/logstash -f /etc/logstash/logstash.conf &

But when i execute supervisorctl, I get the below error

elasticsearch                    FATAL      Exited too quickly (process log may have details)
kibana                           FATAL      Exited too quickly (process log may have details)
logstash                         FATAL      Exited too quickly (process log may have details) 
nginx                            FATAL      Exited too quickly (process log may have details)

Can someone help me fix this ?

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