# How to fix elasticsearch error failed service

**URL:** <https://discuss.elastic.co/t/how-to-fix-elasticsearch-error-failed-service/94605>\
**Category:** Elasticsearch\
**Created:** [July 26, 2017, 9:32am UTC](https://discuss.elastic.co/t/how-to-fix-elasticsearch-error-failed-service/94605 "2017-07-26T09:32:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![omid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/omid/32/33595_2.png) [@omid](https://discuss.elastic.co/u/omid)\
**Post date:** [July 26, 2017, 9:32am UTC](https://discuss.elastic.co/t/how-to-fix-elasticsearch-error-failed-service/94605/1 "2017-07-26T09:32:46Z")

</div>

my elk and filebeat ver = 5.5.1  
installation steps with = [https://goo.gl/EP2WD4](https://goo.gl/EP2WD4)

but, elasticsearch service = Failed ...  
ERROR =

root@elk:~# systemctl status elasticsearch.service\_

● elasticsearch.service - Elasticsearch  
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)  
Active: **failed** (Result: exit-code) since Wed 2017-07-26 13:06:07 IRDT; 1h 26min ago  
Docs: [http://www.elastic.co](http://www.elastic.co)  
Process: 28672 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID\_DIR}/elasticsearch.pid --quiet -Edefault.path.logs=${LOG\_DIR} -Edefault.path.data=${DATA\_DIR} -Edefault.path  
Process: 28666 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)  
Main PID: 28672 (code=exited, status=1/FAILURE)

Jul 26 13:06:05 elk systemd[1]: Starting Elasticsearch...  
Jul 26 13:06:05 elk systemd[1]: Started Elasticsearch.  
Jul 26 13:06:07 elk systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE  
Jul 26 13:06:07 elk systemd[1]: elasticsearch.service: Unit entered failed state.  
Jul 26 13:06:07 elk systemd[1]: elasticsearch.service: Failed with result 'exit-code'.  
lines 1-13/13 (END)

/etc/elasticsearch/elasticsearch.yml ... config ↓

# ---------------------------------- Network -----------------------------------

# 

# Set the bind address to a specific IP (IPv4 or IPv6):

network.host: "localhost"

# 

# Set a custom port for HTTP:

# 

http.port: 9200

# 

# For more information, consult the network module documentation.

... help me pleas

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 23, 2017, 9:32am UTC](https://discuss.elastic.co/t/how-to-fix-elasticsearch-error-failed-service/94605/2 "2017-08-23T09:32:56Z")

</div>

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