# Hosts value I comment , apm-server do not start

**URL:** <https://discuss.elastic.co/t/hosts-value-i-comment-apm-server-do-not-start/214822>\
**Category:** APM\
**Tags:** server\
**Created:** [January 13, 2020, 11:52am UTC](https://discuss.elastic.co/t/hosts-value-i-comment-apm-server-do-not-start/214822 "2020-01-13T11:52:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joseph\_John](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joseph_john/32/53907_2.png) [@Joseph\_John](https://discuss.elastic.co/u/Joseph_John)\
**Post date:** [January 13, 2020, 11:52am UTC](https://discuss.elastic.co/t/hosts-value-i-comment-apm-server-do-not-start/214822/1 "2020-01-13T11:52:22Z")

</div>

Hi All,  
I am using centos 7, SElinux disabled, firewall disabled, my elasticsearch and kibana service after I modified for singlehost it is working, I am able to see the status of elasticsearch and kibana OK and running  
My environment is as  
**Kibana version** :  
7.5.1-1  
**Elasticsearch version** :  
7.5.1-1  
**APM Server version** :  
7.5.1-1

In apm-server.yml , if I change the value of hosts to any values such as  
host: "0.0.0.0:8200"  
or  
host: "1XX.1X.1.2XX:8200"  
or  
host: "localhost:8200"

and I restart I apm-server do not start.If I comment **host** it works

Earlier I had done the same exact setup, but of lower version on Ubuntu, it worked for \*\*host: "0.0.0.0:8200"

Only difference is of the OS and instead of on premise, I am using centos on AWS cloud (security group permissions are all fine]

Requesting guidance and why my apm-server do not start when I change the values of **host** and why it starts when I comment **host**

Thanks  
Joseph John

---

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [January 14, 2020, 6:31am UTC](https://discuss.elastic.co/t/hosts-value-i-comment-apm-server-do-not-start/214822/2 "2020-01-14T06:31:30Z")

</div>

Does the `apm-server` command exit with an error immediately? If so, what is the error? Otherwise, are there error messages in the log file?

If there's nothing obvious there, please copy your `apm-server.yml` config file somewhere (with any `secret_token` and passwords removed).

---

<div class="post-metadata">

**Author:** ![Joseph\_John](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joseph_john/32/53907_2.png) [@Joseph\_John](https://discuss.elastic.co/u/Joseph_John)\
**Post date:** [January 17, 2020, 6:44am UTC](https://discuss.elastic.co/t/hosts-value-i-comment-apm-server-do-not-start/214822/3 "2020-01-17T06:44:12Z")

</div>

Hi Andrew,  
thanks.  
Like to update exact configuration when I tried with Ubuntu it worked, in centos7 , It is not working  
like to add in my centos7 , SELinux is disabled, iptables -F (flushed), no firewall

No I am using Ubuntu and it is working fine, do not know why in CentOS 7 , it is not working  
Thanks  
Joseph John

---

<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:** [February 7, 2020, 2:44am UTC](https://discuss.elastic.co/t/hosts-value-i-comment-apm-server-do-not-start/214822/4 "2020-02-07T02:44:27Z")

</div>

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