《Elastic Stack 实战手册》——三、产品能力——3.4.入门篇——3.4.3.Kibana基础应用(4) https://developer.aliyun.com/article/1228981
查看集群状态
l green:所有功能完好;
l yellow:数据是可用的,但存在未被分配的副本;
l red:集群中存在不可用的数据;
GET _cat/health?v
返回
epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent 1620218868 12:47:48 es-gcudgkos green 3 3 58 29 0 0 0 0 - 100.0%
创建索引 test
l test:索引名;
l pretty:输出格式良好的JSON响应;
PUT test?pretty
返回
{ "acknowledged" : true, "shards_acknowledged" : true, "index" : "test" }
查看 test 索引
GET test
返回
{ "test" : { "aliases" : { }, "mappings" : { "dynamic_templates" : [ { "message_full" : { "match" : "message_full", "mapping" : { "fields" : { "keyword" : { "ignore_above" : 2048, "type" : "keyword" } }, "type" : "text" } } }, { "message" : { "match" : "message", "mapping" : { "type" : "text" } } }, { "strings" : { "match_mapping_type" : "string", "mapping" : { "type" : "keyword" } } } ] }, "settings" : { "index" : { "routing" : { "allocation" : { "include" : { "_tier_preference" : "data_content" } } }, "refresh_interval" : "10s", "number_of_shards" : "1", "translog" : { "sync_interval" : "5s", "durability" : "async" }, "provided_name" : "test", "max_result_window" : "65536", "creation_date" : "1620218910183", "unassigned" : { "node_left" : { "delayed_timeout" : "5m" } }, "number_of_replicas" : "1", "uuid" : "Xshcy1IyRemznHzcv3Focw", "version" : { "created" : "7100199" } } } } }
《Elastic Stack 实战手册》——三、产品能力——3.4.入门篇——3.4.3.Kibana基础应用(6) https://developer.aliyun.com/article/1228979