Kibana Elastic configuration
Posted JavaAndNetworkLearningPlatform
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Kibana Elastic configuration相关的知识,希望对你有一定的参考价值。
Kibana is an open source analysis and visualization platform designed for use with elastic search. You can use kibana to search and view the data stored in elastic search. Kibana and elasticsearch interact in various charts, tables, maps, etc. to intuitively display data, so as to achieve the purpose of advanced data analysis and visualization.
Elasticsearch, logstash and kibana are what we often call elk technology stack. It can be said that the combination of these three technologies is a very clever design in the field of big data. A very typical MVC idea, model persistence layer, view layer and control layer. Logstash acts as the control layer, responsible for collecting and filtering data. Elasticsearch plays the role of data persistence layer and is responsible for storing data. Kibana, the theme of this chapter, plays the role of view layer, has various dimensions of query and analysis, and uses a graphical interface to display the data stored in elastic search.
Elasticsearch is a Lucene based search server. It provides a distributed multi-user full-text search engine based on restful web interface. Elasticsearch is developed in Java language and released as open source under Apache license terms. It is a popular enterprise search engine. Elasticsearch is used in cloud computing, which can achieve real-time search, stable, reliable, fast, easy to install and use. Official clients are available in Java,. Net (C #), php, python, Apache groovy, ruby, and many other languages. According to the ranking of DB engines, elasticsearch is the most popular enterprise search engine, followed by Apache Solr, which is also based on Lucene.
Elasticsearch is a distributed, highly extended and real-time search and data analysis engine. It can easily make a large number of data have the ability of search, analysis and exploration. Making full use of elasticsearch's horizontal scalability can make data more valuable in the production environment. The implementation principle of elasticsearch is mainly divided into the following steps. First, the user submits the data to elasticsearch database, and then uses the word segmentation controller to segment the corresponding statements, and stores the weight and segmentation results into the data. When the user searches the data, the results are ranked and scored according to the weight, and then the returned results are presented to the user.
Elasticsearch uses Lucene and tries to provide all its features through JSON and Java API. It supports faceting and percolating, which is very useful for notification if the new document matches the registration query. Another feature is called "gateway", which deals with the long-term persistence of index; For example, in the case of a server crash, the index can be recovered from the gateway. Elasticsearch supports real-time get requests and is suitable for NoSQL data storage, but it lacks distributed transactions.
①下载elasticsearch-6.4.1.zip
②直接解压至某目录,设置该目录为ES_HOME环境变量
③安装JDK,并设置JAVA_HOME环境变量
④在windows下,运行 %ES_HOME%\bin\elasticsearch.bat即可运行
以head插件为例:
联网时,直接运行%ES_HOME%\bin\plugin --install mobz/elasticsearch-head。
不联网时,下载elasticsearch-head的zipball的master包,然后运行%ES_HOME%\bin\plugin --url file:///[path-to-downloadfile] --install head,其中[path-to-downloadfile]是下载后master包的绝对路径。
安装完成,重启服务,在浏览器打开 http://localhost:9200/_plugin/head/ 即可。
vim /usr/local/es/elasticsearch-7.4.0/config/elasticsearch.yml
#elasticsearch配置如下:
cluster.name: my-application
node.name: node-1
network.host: 0.0.0.0
http.port: 9200
cluster.initial_master_nodes: ["node-1"]
vim /usr/local/kibana/kibana-7.4.0-linux-x86_64/config/kibana.yml
#kibana配置如下:
server.port: 5601
server.host: "0.0.0.0"
server.name: "kibana-chen"
elasticsearch.hosts: ["http://192.168.68.131:9200"]
elasticsearch.requestTimeout: 99999
cd /usr/local/kibana/kibana-7.4.0-linux-x86_64/bin
#root启动服务器:
./kibana --allow-root
戳“阅读原文”,我们一起进步
以上是关于Kibana Elastic configuration的主要内容,如果未能解决你的问题,请参考以下文章