Mac: OS X 10.15.5
Install the ELK
Install elasticSearch, LogStash, and Kibana on a MAC
Install java8
Online tutorials all recommend the following command, but the wrong ❌
brew cask install homebrew/cask-versions/java8
Copy the code
Cask ‘java8’ is unavailable: ‘/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-versions/Casks/java8.rb’ does not exist.
Error while installing java8 with homebrew, homebrew no longer supports java8 by default.
Solution:
brew cask install homebrew/cask-versions/adoptopenjdk8
Copy the code
Installation es (elasticsearch)
brew install elasticsearch
Copy the code
Run the es
brew services start elasticsearch
Copy the code
Brew Info ElasticSearch to view installation information
Curl request address http://localhost:9200 or your browser request address to see the effect
curl http://localhost:9200
Copy the code
{ "name" : "wxiangqiandeMacBook-Pro.local", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "K1g6JY_6RYaqxNTa_niphA", "version" : {"number" : "7.8.1-snapshot ", "build_flavor" : "oss", "build_type" : "Tar ", "build_hash" : "unknown", "build_date" :" 2020-07-3t16:57:12.889003z ", "build_snapshot" : True, "lucene_version" : "8.5.1", "minimum_wire_compatibility_version" : "Minimum_index_compatibility_version" : "6.0.0-beta1"}, "tagline" : "You Know, for Search"}Copy the code
Install the logstash
brew install logstash
Copy the code
Install Kibana
Kibana is an ES companion tool that lets users interact with ES in web pages
brew install kibana
Copy the code
Start the Kibana
brew services start kibana
Copy the code
Local Browser Access
http://localhost:5601
Copy the code
That’s it for a simple ELK installation!