# What ports are used to communicate between Elasticsearch/Logstash/Kibana?

**URL:** <https://discuss.elastic.co/t/what-ports-are-used-to-communicate-between-elasticsearch-logstash-kibana/169703>\
**Category:** Elasticsearch\
**Created:** [February 24, 2019, 4:48am UTC](https://discuss.elastic.co/t/what-ports-are-used-to-communicate-between-elasticsearch-logstash-kibana/169703 "2019-02-24T04:48:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wad11656](https://avatars.discourse-cdn.com/v4/letter/w/71c47a/32.png) [@wad11656](https://discuss.elastic.co/u/wad11656)\
**Post date:** [February 24, 2019, 4:48am UTC](https://discuss.elastic.co/t/what-ports-are-used-to-communicate-between-elasticsearch-logstash-kibana/169703/1 "2019-02-24T04:48:02Z")

</div>

![top2](https://us1.discourse-cdn.com/elastic/original/3X/9/6/963f6660cda6c374c02637952e548796caea7c92.png)

I'm trying to design a topology diagram indicating with `IP:port` of how each service is communicating with one another. How would I fix and complete this diagram?

- I'm sending logs through Logstash
- I'm using Nginx with SSL.

**/etc/nginx/sites-enabled/mydomain.com** :

```
  server {
      listen 80 default_server;
      server_name _;
      return 301 https://$host$request_uri;
  }
  server {
      listen 443 ssl;
      include snippets/signed.conf;
      include snippets/ssl-params.conf;
      server_name x.x.x.x;
      auth_basic "Restricted Access";
      auth_basic_user_file /etc/nginx/htpasswd.users;
      location / {
          proxy_pass http://localhost:5601;
          proxy_http_version 1.1;
          proxy_set_header Upgrade $http_upgrade;
          proxy_set_header Connection 'upgrade';
          proxy_set_header Host $host;
          proxy_cache_bypass $http_upgrade;
      }
  }

```

I'm reading online such as [here](https://stackoverflow.com/questions/24624980/port-9300-on-elasticsearch) that Elasticsearch uses ports 9200, 9300, and/or 9400. But I can't determine if those ports are used for communication FROM Elasticsearch or TO elasticsearch. So which of ports 9200/9300/9400 does Elasticsearch use?  
Would that port be used in the `Logstash->Elasticsearch` relation or the `Elasticsearch->Kibana` relation?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 24, 2019, 6:19am UTC](https://discuss.elastic.co/t/what-ports-are-used-to-communicate-between-elasticsearch-logstash-kibana/169703/2 "2019-02-24T06:19:49Z")

</div>

They will all use 9200 to talk to Elasticsearch, that's the default HTTP port.

---

<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:** [March 24, 2019, 6:19am UTC](https://discuss.elastic.co/t/what-ports-are-used-to-communicate-between-elasticsearch-logstash-kibana/169703/3 "2019-03-24T06:19:50Z")

</div>

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