Installing the Elastic Stackedit

When installing the Elastic Stack, you must use the same version across the entire stack. For example, if you are using Elasticsearch 8.14.3, you install Beats 8.14.3, APM Server 8.14.3, Elasticsearch Hadoop 8.14.3, Kibana 8.14.3, and Logstash 8.14.3.

If you’re upgrading an existing installation, see Upgrading the Elastic Stack for information about how to ensure compatibility with 8.14.3.

For an example of installing and configuring the Elastic Stack, you can try out our Tutorial 1: Installing a self-managed Elastic Stack. After that, you can also learn how to secure your installation for production following the steps in Tutorial 2: Securing a self-managed Elastic Stack.

Network requirementsedit

To install the Elastic Stack on-premises, the following ports need to be open for each component.

Default port Component


Enterprise Search


Elastic Agent → Logstash
Beats → Logstash


Elastic Agent → Fleet
Fleet Server → Fleet


Elastic Agent → Fleet Server
APM Server


Elasticsearch REST API


Elasticsearch node transport and communication


Logstash REST API

Each Elastic integration has its own ports and dependencies. Verify these ports and dependencies before installation. Refer to Integrations.

For more information on supported network configurations, refer to Elasticsearch Ingest Architectures.

Installation orderedit

Install the Elastic Stack products you want to use in the following order:

  1. Elasticsearch (install instructions)
  2. Kibana (install)
  3. Logstash (install)
  4. Elastic Agent (install instructions) or Beats (install instructions)
  5. APM (install instructions)
  6. Elasticsearch Hadoop (install instructions)

Installing in this order ensures that the components each product depends on are in place.

Installing on Elastic Cloudedit

Our hosted Elasticsearch Service is available on AWS, GCP, and Azure, and you can try it for free.

Installing on Elastic Cloud is easy: a single click creates an Elasticsearch cluster configured to the size you want, with or without high availability. The subscription features are always installed, so you automatically have the ability to secure and monitor your cluster. Kibana is enabled automatically, and a number of popular plugins are readily available.

Some Elastic Cloud features can be used only with a specific subscription. For more information, see