ElasticSearch installation and installation of Kibana
Disclaimer: JDK1.8, the minimum requirement! ElasticSearch client, interface tool!
Java development, the version of ElasticSearch and our corresponding Java core jar package! Corresponding version! The JDK environment is normal!
download
Official website: https://www.elastic.co/
Download link: https://www.elastic.co/cn/downloads/elasticsearch
Install under window!
Unzip it and it's ready to use!
bin 启动文件
config 配置文件
log4j2 日志配置文件
jvm.options java 虚拟机相关的配置
elasticsearch.yml elasticsearch 的配置文件! 默认 9200 端口! 跨域!
lib 相关jar包
logs 日志!
modules 功能模块
plugins 插件!
Start, visit 9200;
Cannot start add at the end of elasticsearch.yml
xpack.ml.enabled: false
Visit to test!
Install the plug-in of the visual interface es head
Need node.js environment
-
Download link: https://github.com/mobz/elasticsearch-head/
-
start up
npm install npm run start
-
The connection test found that there is a cross-domain problem: configure the yml configuration file of es
http.cors.enabled: true http.cors.allow-origin: "*"
- Restart the es server and connect again
For beginners, treat es as a database! (Can build index (library), document (data in the library!))
We use this head as a data display tool! All our queries, Kibana!
Learn about ELK
ELK is the acronym for the three open source frameworks of Elasticsearch, Logstash, and Kibana. It is also called ElasticStack on the market. Among them, Elasticsearch is a near real-time search platform framework based on Lucene, distributed, and interacting through Restful. Big data full-text search engines like Baidu and Google can all use Elasticsearch as the underlying support framework. It can be seen that the search capabilities provided by Elasticsearch are indeed powerful. Many times in the market we call Elasticsearch for es. Logstash is ELK's central data flow engine. It is used to collect data in different formats from different targets (file/data storage/MQ), and after filtering, it supports output to different destinations (file/MQ/redis/elasticsearch/kafka, etc.). Kibana can display Elasticsearch data through a friendly page, providing real-time analysis functions.
Many developers in the market can unanimously say that ELK is a log analysis architecture technology stack, but in fact ELK is not only suitable for log analysis, it can also support any other data analysis and collection scenarios, log analysis and collection It's just more representative. Not unique.
Kibana
Kibana is an open source analysis and visualization platform for Elasticsearch, which is used to search and view interactive data stored in the Elasticsearch index. Using Kibana, advanced data analysis and display can be performed through various charts. Kibana makes huge amounts of data easier to understand. It is easy to operate, and the browser-based user interface can quickly create a dashboard (dashboard) to display Elasticsearch query dynamics in real time. Setting up Kibana is very simple. No coding or additional infrastructure is required, Kibana installation can be completed and Elasticsearch index monitoring can be started within a few minutes
Official website: https://www.elastic.co/cn/kibana
The Kibana version must be consistent with Es!
Start the test:
-
Unzip the backend directory
!
-
start up
-
Access test
-
development tools! (Post, curl, head, Google Chrome plug-in test!)
-
Sinicization! Modify the kibana configuration yourself! zh-CN!
Add at the end of the kibaba.yml file
i18n.locale: "zh-CN"