Configure host for fleet server/APM agent policy

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)

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

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

@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?

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

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