Guide for Setting Up Elastic Stack on Ubuntu 24.04 LTS
Welcome to a step-by-step guide on installing and configuring the Elastic Stack (ELK) on Ubuntu 24.04. This long-term support (LTS) release is ideal for deploying Elastic Stack components due to its stable kernel, long support cycle, official support from Elastic, improved performance, full compatibility with Docker and containers, and orchestration tools like Kubernetes.
Prerequisites
Before we begin, ensure your system is up-to-date by running:
Installing Java
Elasticsearch requires Java. Install the default JDK package and verify:
Adding Elasticsearch Repository
Import the Elasticsearch GPG key to your system and add its repository:
Installing Elasticsearch
Install Elasticsearch:
Starting and Enabling Elasticsearch Service
Start and enable the Elasticsearch service:
Installing Logstash
Install Logstash from the same Elastic repository:
(Configure pipelines for your data ingestion at as needed)
Installing Kibana
Install Kibana:
Enable and start Kibana:
Configuring Firewall (if enabled)
Allow access to Kibana (default port 5601):
Verifying Installation
- Elasticsearch:
- Kibana: Open in a browser.
These steps cover the core installation and initial configuration of the Elastic Stack components on Ubuntu 24.04. For production environments, further configuration of security (TLS, authentication via Elastic Stack features) and performance tuning is recommended.
Note: Ubuntu 24.04 is officially supported by Elastic Stack version 8.x (latest major) according to Elastic's support matrix.
For a basic setup, disable security features in Elasticsearch.
To use the Elastic Stack on Ubuntu 24.04, first deploy a new server on Shape.Host, connect to the server, and prepare the system for Elastic Stack deployment.
Install and configure Filebeat to ship data from servers to Logstash or Elasticsearch. Examples of Beats include Filebeat, Metricbeat, Packetbeat, and Auditbeat.
Kibana is a web-based dashboard interface for visualizing data in Elasticsearch.
For more information, visit Elastic's official documentation: Elastic Documentation
Data-and-cloud-computing technologies like Docker and Kubernetes are fully compatible with the Elastic Stack installed in this step-by-step guide, providing scalable and robust environments for data management and analysis. For effective data ingestion and processing, tools like Filebeat can be installed and configured to work alongside Logstash and Elasticsearch in this setting.