Setup supervisor for Elasticsearch

I am trying to monitor Elastic search processes using supevisor. Below is the supervisord programs for it.

In supervisord program

[program:elasticsearch]
command=sudo systemctl restart elasticsearch.service
directory=/usr/share/elasticsearch/
autostart=true
autorestart=true
startretries=10
stdout_logfile=/var/log/elasticsearch/elasticsearch.log
stderr_logfile=/var/log/elasticsearch/elasticsearch.log

Above program is not working- getting error

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