Installation and interface preview of kibana 7. X (Alibaba cloud Ubuntu)

Time:2020-1-23

Continued from the previous section: installation and simple configuration of elasticsearch 7. X (Alibaba cloud Ubuntu)

System environment

  • Operating system: Ubuntu 18.04 lts (Alibaba cloud)
  • System IP
#Intranet, private address
172. Inside. Inside. Inside
#Public address
112. Outer. Outer. Outer
  • Elasticsearch version: 7.2
  • Kibana version: 7.2

Installation and configuration

  • Official document: https://www.elastic.co/guide/
  • download
wget https://artifacts.elastic.co/downloads/kibana/kibana-7.2.0-linux-x86_64.tar.gz
  • decompression
tar -xzf kibana-7.2.0-linux-x86_64.tar.gz
  • Subsequent operations are carried out in kibana-7.2.0-linux-x86_directory
cd kibana-7.2.0-linux-x86_64/
  • Edit. / config / kibana.yml
#Add or modify
server.port: 5601
server.host: "0.0.0.0"
Elasticsearch.hosts: ["http://172.18. Internal. Internal: 9200"]
I18n.locale: "zh CN" configuration Chinese interface, optional
  • Modify ECS security group and release port 5601
  • Start kibana
./bin/kibana
  • The browser accesses http://112.external.external.external: 5601/, and you can see the following interface

Installation and interface preview of kibana 7. X (Alibaba cloud Ubuntu)

  • You can click “try our sample data” in the figure above to add test data to play

Installation and interface preview of kibana 7. X (Alibaba cloud Ubuntu)

  • After adding three kinds of test data, click the dashboard button on the left to further view the added three kinds of data information

Installation and interface preview of kibana 7. X (Alibaba cloud Ubuntu)

Kibana Dev Tools

  • Kibana dev tools is a useful tool

Installation and interface preview of kibana 7. X (Alibaba cloud Ubuntu)

Kibana plug in

  • Kibana common plug-ins: https://www.elastic.co/guide/
  • Plug in installation, view and uninstall
. / bin / kibana plugin install
. / bin / kibana plugin list
. / bin / kibana plugin remove

Frequently used commands

Cluster information

  • Check whether the cluster is healthy
#View cluster health status
GET /_cluster/health
  • View node list
#View node list
GET /_cat/nodes?v

Indexes

  • View all indexes
#View all indexes
GET /_cat/indices
  • Viewing the mapping of an index
#Viewing the mapping of an index
GET /kibana_sample_data_ecommerce/_mapping
  • View the settings of an index
#View the settings of an index
GET /kibana_sample_data_ecommerce/_settings

File

  • Return all documents indexed
#Return all documents indexed
GET  /kibana_sample_data_ecommerce/_search
  • View documents by ID
#View documents by ID
GET  /kibana_sample_data_ecommerce/_doc/xPGYeWwBVtEez7y_Ku1U
  • Term query exact match
#Term query exact match
GET /_search
{
  "query": {
    "term": {
      "currency": "EUR"
    }
  }
}
#Convert the query to a filtering through constant score
#Avoid scoring and improve performance with caching
GET /_search
{
  "query": {
    "constant_score": {
      "filter": {
        "term": {
          "currency": "EUR"
        }
      }
    }
  }
}
  • Wildcard fuzzy query
#Wildcard fuzzy query
GET /_search
{
  "query": {
    "wildcard": {
      "currency": "*U*"
    }
  }
}
#Convert the query to a filtering through constant score
#Avoid scoring and improve performance with caching
GET /_search
{
  "query": {
    "constant_score": {
      "filter": {
        "wildcard": {
          "currency": "*U*"
        }
      }
    }
  }
}

This paper is the learning notes of Ruan Yiming’s “elastic search core technology and actual combat”.

Recommended Today

On the reference count in PHP string type

Author: Wang Shu Background introduction String type is also a commonly used type. Due to the characteristics of strings, in order to save memory, the same string variables usually share a block of memory space. By reference counting, multiple variables are marked to use this memory. However, after GDB tracking, it is found that not […]