Elastic Stack Workshop | 刘征 Developer Advocate @ Elastic

Version 0.2.5

搜索、观测、保护三大解决方案实战教程,各种级别和类型的学习资料,欢迎一起学习和共建。

在 macOS 上运行 Kibana

tar zxf

tar zxf elasticsearch-8.1.0-darwin-x86_64.tar.gz -C node1

tar zxf elasticsearch-8.1.0-darwin-x86_64.tar.gz -C node2

tar zxf elasticsearch-8.1.0-darwin-x86_64.tar.gz -C node3

bin/elasticsearch -Ecluster.name=3m -Enode.name=node1

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ✅ Elasticsearch security features have been automatically configured! ✅ Authentication is enabled and cluster connections are encrypted.

ℹ️ Password for the elastic user (reset with bin/elasticsearch-reset-password -u elastic): FpGuIiBoQ_Sgj5D6bO*R

ℹ️ HTTP CA certificate SHA-256 fingerprint: 95a720bb818071e8dd6bf0b7ec3d0c586d582d1312ff60f2b2eb586a143e7c20

ℹ️ Configure Kibana to use this cluster: • Run Kibana and click the configuration link in the terminal when Kibana starts. • Copy the following enrollment token and paste it into Kibana in your browser (valid for the next 30 minutes): eyJ2ZXIiOiI4LjEuMCIsImFkciI6WyIxOTIuMTY4LjMxLjEyNTo5MjAwIl0sImZnciI6Ijk1YTcyMGJiODE4MDcxZThkZDZiZjBiN2VjM2QwYzU4NmQ1ODJkMTMxMmZmNjBmMmIyZWI1ODZhMTQzZTdjMjAiLCJrZXkiOiI2N1Y0blg4QnhZMkxEbllNc2YtMTpBSWVoS21WSlNReUJMUnphUUE5TDNBIn0=

ℹ️ Configure other nodes to join this cluster: • On this node: ⁃ Create an enrollment token with bin/elasticsearch-create-enrollment-token -s node. ⁃ Uncomment the transport.host setting at the end of config/elasticsearch.yml. ⁃ Restart Elasticsearch. • On other nodes: ⁃ Start Elasticsearch with bin/elasticsearch --enrollment-token <token>, using the enrollment token that you generated. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

./elasticsearch-reset-password -u elastic -i

~/Downloads/elk/lab2/node1/elasticsearch-8.1.0  bin/elasticsearch-create-enrollment-token -s node warning: ignoring JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_111.jdk/Contents/Home; using bundled JDK eyJ2ZXIiOiI4LjEuMCIsImFkciI6WyIxOTIuMTY4LjMxLjEyNTo5MjAwIl0sImZnciI6Ijk1YTcyMGJiODE4MDcxZThkZDZiZjBiN2VjM2QwYzU4NmQ1ODJkMTMxMmZmNjBmMmIyZWI1ODZhMTQzZTdjMjAiLCJrZXkiOiJzN2FIblg4QnhZMkxEbllNS3dCaDowT0RIYlE3OFQyV2ZGTmxKODFfUjRnIn0=

bin/elasticsearch -Ecluster.name=3m -Enode.name=node2 –enrollment-token eyJ2ZXIiOiI4LjEuMCIsImFkciI6WyIxOTIuMTY4LjMxLjEyNTo5MjAwIl0sImZnciI6Ijk1YTcyMGJiODE4MDcxZThkZDZiZjBiN2VjM2QwYzU4NmQ1ODJkMTMxMmZmNjBmMmIyZWI1ODZhMTQzZTdjMjAiLCJrZXkiOiJzN2FIblg4QnhZMkxEbllNS3dCaDowT0RIYlE3OFQyV2ZGTmxKODFfUjRnIn0=

bin/elasticsearch -Ecluster.name=3m -Enode.name=node3 –enrollment-token eyJ2ZXIiOiI4LjEuMCIsImFkciI6WyIxOTIuMTY4LjMxLjEyNTo5MjAwIl0sImZnciI6Ijk1YTcyMGJiODE4MDcxZThkZDZiZjBiN2VjM2QwYzU4NmQ1ODJkMTMxMmZmNjBmMmIyZWI1ODZhMTQzZTdjMjAiLCJrZXkiOiJzN2FIblg4QnhZMkxEbllNS3dCaDowT0RIYlE3OFQyV2ZGTmxKODFfUjRnIn0=

Last updated on 2017-10-17
Published on 2017-10-17
 Edit on GitHub