🔍
Monitoring & Observability

Elasticsearch

Search and analytics engine — core of the ELK stack

🐧 Linux🍎 Mac🪟 Windows
Reviewed: Tested on: Kubernetes 1.29 · Terraform 1.8 · Ubuntu 22.04

What is this?

Elasticsearch indexes and searches large volumes of logs and text fast.

📁

Config files for Elasticsearch

Where to create or edit the main configuration — paths below match the setup steps.

  • /etc/elasticsearch/elasticsearch.yml

    Location: Elasticsearch node

    Cluster name, nodes, and paths

📥

Step 01

Install Elasticsearch

(01)Install Elasticsearch

Linux
1docker run -d --name elasticsearch -p 9200:9200 -e 'discovery.type=single-node' -e 'xpack.security.enabled=false' docker.elastic.co/elasticsearch/elasticsearch:8.15.0

Step 02

Verify

(01)Verify installation

Linux
1curl http://localhost:9200
🔧

Step 03

Common Problems

#1Cluster status yellow or red

Linux
1curl http://localhost:9200/_cluster/health?pretty
2curl http://localhost:9200/_cat/shards?v
3# Increase heap or add nodes for red shards