# What is the appropriate configuration?

**URL:** <https://discuss.elastic.co/t/what-is-the-appropriate-configuration/358486>\
**Category:** Elastic Agent\
**Created:** [April 30, 2024, 11:35am UTC](https://discuss.elastic.co/t/what-is-the-appropriate-configuration/358486 "2024-04-30T11:35:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fernandoc4d](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fernandoc4d/32/134180_2.png) [@Fernandoc4d](https://discuss.elastic.co/u/Fernandoc4d)\
**Post date:** [April 30, 2024, 11:35am UTC](https://discuss.elastic.co/t/what-is-the-appropriate-configuration/358486/1 "2024-04-30T11:35:58Z")

</div>

Greetings community.  
I have been trying for several days to get an ES instance ready which I have to connect various agents, remote hosts that are servers in production to collect a series of very specific metrics of the databases that run on these machines on PostgreSQL.  
After solving countless problems to add the agents, finally achieving it, I find that my ES does not collect data from the agents... then I see that port 8220 of the fleet server, which is on the same server as my ES, is only for agent enrollment, but the data is collected against ES over port 9200.

The question is:  
First, if what I stated above is correct, is the data from the remote agents/hosts collected over port 9200?  
And second, what should be the correct configuration? When I have set up my ES and linked with Kibana, I am asked about this aspect... in the image I attach below, the output should be the public IP of the server?  
Thank you.

 ![imagen](https://us1.discourse-cdn.com/elastic/original/3X/0/b/0b4b71d87a1eea049d0fe8a74e9c189e6d7f689e.png)

---

<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:** [May 28, 2024, 11:36am UTC](https://discuss.elastic.co/t/what-is-the-appropriate-configuration/358486/2 "2024-05-28T11:36:22Z")

</div>

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