initially elastic search was working but due to some update its stop working and giving such error message while checking status.
systemctl status elasticsearch.service
ā elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2016-10-27 11:26:43 PKT; 21min ago
Docs: http://www.elastic.co
Process: 10038 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -Des.pidfile=${PID_DIR}/elasticsearch.pid -Des.default.path.home=${ES_HOME} -Des.default.path.logs=${LOG_DIR} -Des.default.path.data=${DATA_DIR} -Des.default.path.conf=${CONF_DIR} (code=exited, status=1/FAILURE)
Process: 10032 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)
Main PID: 10038 (code=exited, status=1/FAILURE)
Oct 27 11:26:43 ELK-*** elasticsearch[10038]: #
Oct 27 11:26:43 ELK-UMIR elasticsearch[10038]: # Block initial recovery after a full cluster restart until N nodes are started:
Oct 27 11:26:43 ELK-UMIR elasticsearch[10038]: #
Oct 27 11:26:43 ELK-UMIR elasticsearch[10038]: # gateway.recover_after_nodes: 3
Oct 27 11:26:43 ELK-UMIR elasticsearch[10038]: #
Oct 27 11:26:43 ELK-UMIR elasticsearch[10038]: # For more information, see the documentation at:
Oct 27 11:26:43 ELK-UMIR elasticsearch[10038]: # <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-gateway.html>
Oct 27 11:26:43 ELK-UMIR systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Oct 27 11:26:43 ELK-UMIR systemd[1]: Unit elasticsearch.service entered failed state.
Oct 27 11:26:43 ELK-UMIR systemd[1]: elasticsearch.service failed.