(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.0Search and analytics engine — core of the ELK stack
What is this?
Elasticsearch indexes and searches large volumes of logs and text fast.
Where to create or edit the main configuration — paths below match the setup steps.
/etc/elasticsearch/elasticsearch.ymlLocation: Elasticsearch node
Cluster name, nodes, and paths
Step 01
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.0Step 02
1curl http://localhost:9200Step 03
1curl http://localhost:9200/_cluster/health?pretty2curl http://localhost:9200/_cat/shards?v3# Increase heap or add nodes for red shards