# Configure host for fleet server/APM agent policy

**URL:** <https://discuss.elastic.co/t/configure-host-for-fleet-server-apm-agent-policy/332507>\
**Category:** Elastic Agent\
**Tags:** fleet\
**Created:** [May 4, 2023, 7:45am UTC](https://discuss.elastic.co/t/configure-host-for-fleet-server-apm-agent-policy/332507 "2023-05-04T07:45:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![samiujan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samiujan/32/23605_2.png) [@samiujan](https://discuss.elastic.co/u/samiujan)\
**Post date:** [May 4, 2023, 7:45am UTC](https://discuss.elastic.co/t/configure-host-for-fleet-server-apm-agent-policy/332507/1 "2023-05-04T07:45:09Z")

</div>

Hi

I have installed Elastic/Kibana 8.7 and am running a Fleet server and APM - this is all running successfully on localhost

Now I want to allow access to a NodeJS application on an EC2 and a web app running off S3/cloudfront

For that, I want to allow access from all IP addresses to the APM agent so I know I need to set `host: 0.0.0.0:8200` or `host: :8200` somewhere

I tried resetting the value here but it doesn't seem to work (image attached below)

 ![Screenshot from 2023-05-04 10-50-30](https://us1.discourse-cdn.com/elastic/original/3X/c/5/c5faf5e4dc66c5dda5592870c0c52776b7cc0deb.png)

Is this the right place to do it?

When I check the agent policy, it tells me it's not registered the host name above

```auto
id: <removed>
revision: 9
outputs:
  default:
    type: elasticsearch
    hosts:
      - 'https://<private IP>:9200'
    ssl.ca_trusted_fingerprint: <removed>
fleet:
  hosts:
    - 'https://<public IP>:8220'
    - 'https://localhost:8220'
output_permissions:
  default:
    _elastic_agent_monitoring:
      indices:
        - names:
            - logs-elastic_agent.apm_server-default
          privileges:
            - auto_configure

```

---

<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:** [May 8, 2023, 1:23pm UTC](https://discuss.elastic.co/t/configure-host-for-fleet-server-apm-agent-policy/332507/2 "2023-05-08T13:23:50Z")

</div>

@samiujan the agent policy you've pasted doesn't include the APM integration at all. You mentioned above that you have APM Server running. How did you install it? Did you follow [Quick start | APM User Guide [8.7] | Elastic](https://www.elastic.co/guide/en/apm/guide/current/apm-quick-start.html#add-apm-integration)?

---

<div class="post-metadata">

**Author:** ![samiujan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samiujan/32/23605_2.png) [@samiujan](https://discuss.elastic.co/u/samiujan)\
**Post date:** [May 15, 2023, 7:29am UTC](https://discuss.elastic.co/t/configure-host-for-fleet-server-apm-agent-policy/332507/3 "2023-05-15T07:29:43Z")

</div>

This can be closed since I changed the config multiple times afterwards

---

<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:** [June 12, 2023, 7:30am UTC](https://discuss.elastic.co/t/configure-host-for-fleet-server-apm-agent-policy/332507/4 "2023-06-12T07:30:02Z")

</div>

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