ElasticSearch Pack Suit
- ElasticSearch : search component
- Logstash : data collect
- Kibana : data visual analysis
HomePage
bash
https://www.elastic.co/downloads
Download ElasticSearch
bash
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.17.0-linux-x86_64.tar.gz
Configure ElasticSearch
bash
open config/elasticsearch.yml
bash
network.host: 0.0.0.0
discovery.seed_hosts: []
xpack.security.enabled: false
Start ElasticSearch
bash
bin/elasticsearch
Test ElasticSearch Service
bash
curl -X GET "localhost:9200"
bash
http://localhost:9200
Download Logstash
bash
https://artifacts.elastic.co/downloads/logstash/logstash-8.17.0-linux-x86_64.tar.gz
Configure Logstash
bash
touch config/logstash.conf
open config/logstash.conf
bash
input {
beats {
port => 5044
}
tcp {
port => 5043
}
http {
port => 5045
codec => "json"
}
}
output {
elasticsearch {
hosts => "http://localhost:9200"
document_id => "test"
index => "testindex"
}
stdout { codec => rubydebug }
}
Start Logstash
bash
bin/logstash -f config/logstash.conf
Test Logstash Service
bash
curl -X POST -H "Content-Type: application/json" -d '{"id":"100"}' http://localhost:5045
Download Kibana
bash
https://artifacts.elastic.co/downloads/kibana/kibana-8.17.0-linux-x86_64.tar.gz
Configure Kibana
bash
open config/kibana.yml
bash
server.port: 5601
server.host: "localhost"
elasticsearch.hosts: ["http://localhost:9200"]
Start Kibana
bash
bin/kibana
Test Kibana Service
bash
http://localhost:5601