This is the sixth day of my participation in the August More text Challenge. For details, see: August More Text Challenge

elaticsearch kibana

introduce

Elasticsearch is a real-time distributed search and analysis engine based on Apache Lucene™. It is the most advanced and efficient open source search engine framework implemented by Lucene today.

Elasticsearch does more than just implement full-text search based on Lucene. At the same time, it has the following characteristics:

Distributed real-time file storage and indexing every field to make it searchable. Distributed search engine for real-time analysis. It can scale to hundreds of servers, processing petabytes of structured or unstructured data.

Solr is also based on Apache Lucene, and its real-time performance is poor. When the Solr index is created in real time, I/O blocking occurs, resulting in poor query performance. As the amount of data increases, Solr’s search efficiency becomes lower. Therefore, Solr is suitable for scenarios where the effective data volume content varies little. Such as article index, small and medium commodity index.

Elasticsearch is more suitable for scenarios with large increments, such as logging.

Elasticsearch download

Download: www.elastic.co/cn/download…

Version: 7.13.4

Downloads:

  • WINDOWSshaasc
  • MACOSshaasc

 

Run after decompression

Bin/ElasticSearch (or bin\ Elasticsearch.bat on Windows)

Running curl http://localhost:9200/

Successful startup output:

{
  "name" : "RubbledeMacBook-Pro.local"."cluster_name" : "elasticsearch"."cluster_uuid" : "aTHYHSUhTy-Usinl2EOJWw"."version" : {
    "number" : "7.13.4"."build_flavor" : "default"."build_type" : "tar"."build_hash" : "c5f60e894ca0c61cdbae4f5a686d9f08bcefc942"."build_date" : "The 2021-07-14 T18:33:36. 673943207 z"."build_snapshot" : false."lucene_version" : "8.8.2"."minimum_wire_compatibility_version" : "6.8.0"."minimum_index_compatibility_version" : "6.0.0 - beta1"
  },
  "tagline" : "You Know, for Search"
}
Copy the code

kibana

Download www.elastic.co/cn/download…

Version: 7.13.4

Downloads:

  • WINDOWSshaasc
  • MACshaasc

configuration

Modify elasticsearch.hosts in the configuration file config/kibana.yml to set the address of the ElasticSearch service

# Default address 5601
# Kibana is served by a back end server. This setting specifies the port to use.
#server.port: 5601
# The Kibana server's name. This is used for display purposes.
#server.name: "your-hostname"

Change the link to elasticSearch address cluster with multiple, separated
# The URLs of the Elasticsearch instances to use for all your queries.
elasticsearch.hosts: ["http://localhost:9200"]
Copy the code

Start the kibana

bin/kibana

Browser visit http://localhost:5601

Start Dev Tools to start Kibana

bin/kibana

Browser visit http://localhost:5601

Start Dev Tools to start Kibana

bin/kibana

Browser visit http://localhost:5601

Start the Dev Tools

Write a simple query, click the Run button, and start your journey

get _search
{
  "query": {
    "match_all": {}}}Copy the code

This is how to install elasticSearch and Kibana.