development:system:elk-stack
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
development:system:elk-stack [2024/08/22 14:21] – tungnt | development:system:elk-stack [2024/08/22 14:53] (current) – [Cài đặt kibana] tungnt | ||
---|---|---|---|
Line 5: | Line 5: | ||
* https:// | * https:// | ||
+ | ===== Cài đặt elasticsearch ===== | ||
+ | |||
+ | <code bash> | ||
+ | (venv) tungnt@MacBook-Pro-cua-Nguyen-2 Downloads % cd elasticsearch-8.15.0 | ||
+ | (venv) tungnt@MacBook-Pro-cua-Nguyen-2 elasticsearch-8.15.0 % bin/ | ||
+ | ... | ||
+ | ✅ Elasticsearch security features have been automatically configured! | ||
+ | ✅ Authentication is enabled and cluster connections are encrypted. | ||
+ | |||
+ | ℹ️ | ||
+ | Btnk1NrI3-I5X_dt0FmU | ||
+ | |||
+ | ℹ️ | ||
+ | c1542cd24b1615552f06780a36a20557b6e9539ddb71abcf358e504ffcb61395 | ||
+ | |||
+ | ℹ️ | ||
+ | • 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): | ||
+ | eyJ2ZXIiOiI4LjE0LjAiLCJhZHIiOlsiMTAuOC4wLjM6OTIwMCJdLCJmZ3IiOiJjMTU0MmNkMjRiMTYxNTU1MmYwNjc4MGEzNmEyMDU1N2I2ZTk1MzlkZGI3MWFiY2YzNThlNTA0ZmZjYjYxMzk1Iiwia2V5IjoiQk02Q2VwRUJaZTcxMEdzakt0V1A6S05iZjdyTGJUWHUxSGdaUnJTaWhsZyJ9 | ||
+ | |||
+ | ℹ️ | ||
+ | • On this node: | ||
+ | ⁃ Create an enrollment token with `bin/ | ||
+ | ⁃ Uncomment the transport.host setting at the end of config/ | ||
+ | ⁃ Restart Elasticsearch. | ||
+ | • On other nodes: | ||
+ | ⁃ Start Elasticsearch with `bin/ | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | Nếu báo lỗi Privacy and security file jdk.app, dùng lệnh sau: | ||
+ | |||
+ | <code bash> | ||
+ | (venv) tungnt@MacBook-Pro-cua-Nguyen-2 elasticsearch-8.15.0 % xattr -d com.apple.quarantine jdk.app | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Cài đặt kibana ===== | ||
+ | |||
+ | <code bash> | ||
+ | tungnt@192 Downloads % xattr -d com.apple.quarantine kibana-8.15.0 | ||
+ | tungnt@192 Downloads % cd kibana-8.15.0 | ||
+ | tungnt@192 kibana-8.15.0 % bin/kibana | ||
+ | ... | ||
+ | i Kibana has not been configured. | ||
+ | |||
+ | Go to http:// | ||
+ | </ | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | https:// | ||
====== Download file CSV ====== | ====== Download file CSV ====== | ||
development/system/elk-stack.1724336501.txt.gz · Last modified: 2024/08/22 14:21 by tungnt