[ Spring ] Install Elastic Search Suit on Ubuntu24

发布于:2025-02-10 ⋅ 阅读:(34) ⋅ 点赞:(0)
ElasticSearch Pack Suit
  • ElasticSearch : search component
  • Logstash : data collect
  • Kibana : data visual analysis
HomePage
https://www.elastic.co/downloads
Download ElasticSearch
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.17.0-linux-x86_64.tar.gz
Configure ElasticSearch
open config/elasticsearch.yml
network.host: 0.0.0.0
discovery.seed_hosts: []
xpack.security.enabled: false
Start ElasticSearch
bin/elasticsearch
Test ElasticSearch Service
curl -X GET "localhost:9200"
http://localhost:9200
Download Logstash
https://artifacts.elastic.co/downloads/logstash/logstash-8.17.0-linux-x86_64.tar.gz
Configure Logstash
touch config/logstash.conf
open config/logstash.conf
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
bin/logstash -f config/logstash.conf
Test Logstash Service
curl -X POST -H "Content-Type: application/json" -d '{"id":"100"}' http://localhost:5045
Download Kibana
https://artifacts.elastic.co/downloads/kibana/kibana-8.17.0-linux-x86_64.tar.gz
Configure Kibana
open config/kibana.yml
server.port: 5601
server.host: "localhost"
elasticsearch.hosts: ["http://localhost:9200"]
Start Kibana
bin/kibana
Test Kibana Service
http://localhost:5601

网站公告

今日签到

点亮在社区的每一天
去签到