3

elasticsearch实战手册阅读(1)——导读

 3 years ago
source link: https://segmentfault.com/a/1190000040113236
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

elasticsearch 学习系列目录——更新ing

《Elastic Stack 实战手册》早鸟版首发

二、导读部分

2.1 基础篇

内容描述基础介绍 能力组成 技术优势 专用术语

2.2 入门篇

内容描述elastic stack部署 elasticsearch基础应用 kibana基础应用

2.3 进阶篇

内容描述CCR/CCS Rollup Data stream 索引生命周期管理 分片管理 Snopshot Watcher Alters Transform Graph 机器学习 elasticsearch SQL Canvas APM Uptime Enterprise Search SIEM Endpoint Security 集群管理及监控 Elasticsearch 各类语言开发示例

三、kibana中的查询

3.1 集群

# 获取整个 cluster 的状态
GET _cluster/state
# 获取当前可以进行 vote 的所有 master-eligible 节点
GET _cluster/state?filter_path=metadata.cluster_coordination.last_committed_config

3.2 索引

# 配置索引的主/副分片
# 主分片无法修改,因为es索引时候,根据主分片数量,确定文档所在分片
# 副本分片可以动态修改
PUT yztest
{
  "settings": {
    "number_of_shards": 2,
    "number_of_replicas": 1
  }
}
# 查看索引配置

GET kibana_sample_data_logs/_settings?pretty

{
  "kibana_sample_data_logs" : {
    "settings" : {
      "index" : {
        "routing" : {
          "allocation" : {
            "include" : {
              "_tier_preference" : "data_content"
            }
          }
        },
        "number_of_shards" : "1",
        "auto_expand_replicas" : "0-1",
        "blocks" : {
          "read_only_allow_delete" : "false"
        },
        "provided_name" : "kibana_sample_data_logs",
        "creation_date" : "1622706464015",
        "number_of_replicas" : "1",
        "uuid" : "KIsQkeGpTpi9-WO0rz-ACw",
        "version" : {
          "created" : "7130199"
        }
      }
    }
  }
}

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK