Installing the Elastic Stack

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

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

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 requirements ¶

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

Default port Component
3002 Enterprise Search
5044 Elastic Agent → Logstash
Beats → Logstash
5601 Kibana
Elastic Agent → Fleet
Fleet Server → Fleet
8220 Elastic Agent → Fleet Server
APM Server
9200-9300 Elasticsearch REST API
9300-9400 Elasticsearch node transport and communication
9600-9700 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 order ¶

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

  1. Elasticsearch (https://www.elastic.co/guide/en/elasticsearch/reference/current/install-elasticsearch.html[install instructions])
  2. Kibana (https://www.elastic.co/guide/en/kibana/current/install.html[install])
  3. Logstash (https://www.elastic.co/guide/en/logstash/current/installing-logstash.html[install])
  4. Elastic Agent (https://www.elastic.co/guide/en/fleet/current/elastic-agent-installation.html[install instructions]) or Beats (https://www.elastic.co/guide/en/beats/libbeat/current/getting-started.html[install instructions])
  5. APM (https://www.elastic.co/guide/en/apm/guide/current/apm-quick-start.html[install instructions])
  6. Elasticsearch Hadoop (https://www.elastic.co/guide/en/elasticsearch/hadoop/current/install.html[install instructions])

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

Installing on Elastic Cloud ¶

{ess-leadin-short}

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 https://www.elastic.co/pricing/.