kibana上查看es集群节点信息

get /_cat/nodes?v  

ip        heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
127.0.0.1 23 97 1 0.07 0.04 0.05 mdi * ES

  查看kibana_sample_data_ecommerce索引的相关信息

GET kibana_sample_data_ecommerce

{
"kibana_sample_data_ecommerce" : {
"aliases" : { },
"mappings" : {
"properties" : {
"category" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword"
}
}
},
"currency" : {
"type" : "keyword"
},
"customer_birth_date" : {
"type" : "date"
},
"customer_first_name" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"customer_full_name" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"customer_gender" : {
"type" : "keyword"
},
"customer_id" : {
"type" : "keyword"
},
"customer_last_name" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"customer_phone" : {
"type" : "keyword"
},
"day_of_week" : {
"type" : "keyword"
},
"day_of_week_i" : {
"type" : "integer"
},
"email" : {
"type" : "keyword"
},
"geoip" : {
"properties" : {
"city_name" : {
"type" : "keyword"
},
"continent_name" : {
"type" : "keyword"
},
"country_iso_code" : {
"type" : "keyword"
},
"location" : {
"type" : "geo_point"
},
"region_name" : {
"type" : "keyword"
}
}
},
"manufacturer" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword"
}
}
},
"order_date" : {
"type" : "date"
},
"order_id" : {
"type" : "keyword"
},
"products" : {
"properties" : {
"_id" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"base_price" : {
"type" : "half_float"
},
"base_unit_price" : {
"type" : "half_float"
},
"category" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword"
}
}
},
"created_on" : {
"type" : "date"
},
"discount_amount" : {
"type" : "half_float"
},
"discount_percentage" : {
"type" : "half_float"
},
"manufacturer" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword"
}
}
},
"min_price" : {
"type" : "half_float"
},
"price" : {
"type" : "half_float"
},
"product_id" : {
"type" : "long"
},
"product_name" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword"
}
},
"analyzer" : "english"
},
"quantity" : {
"type" : "integer"
},
"sku" : {
"type" : "keyword"
},
"tax_amount" : {
"type" : "half_float"
},
"taxful_price" : {
"type" : "half_float"
},
"taxless_price" : {
"type" : "half_float"
},
"unit_discount_amount" : {
"type" : "half_float"
}
}
},
"sku" : {
"type" : "keyword"
},
"taxful_total_price" : {
"type" : "half_float"
},
"taxless_total_price" : {
"type" : "half_float"
},
"total_quantity" : {
"type" : "integer"
},
"total_unique_products" : {
"type" : "integer"
},
"type" : {
"type" : "keyword"
},
"user" : {
"type" : "keyword"
}
}
},
"settings" : {
"index" : {
"number_of_shards" : "1",
"auto_expand_replicas" : "0-1",
"provided_name" : "kibana_sample_data_ecommerce",
"creation_date" : "1573016765747",
"number_of_replicas" : "0",
"uuid" : "O7wX0YeWRxuniFTLuDWJfA",
"version" : {
"created" : "7010099"
}
}
}
}
}

  查看kibana_sample_data_ecommerce索引文档总数

GET kibana_sample_data_ecommerce/_count

{
"count" : 4675,
"_shards" : {
"total" : 1,
"successful" : 1,
"skipped" : 0,
"failed" : 0 }

  查看kibana_sample_data_ecommerce索引的前10条文档;了解文档格式

GET kibana_sample_data_ecommerce/_search

  对索引名字(kibana)进行通配符的查询

GET /_cat/indices/kibana*?v&s=index

health status index                        uuid                   pri rep docs.count docs.deleted store.size pri.store.size
green open kibana_sample_data_ecommerce O7wX0YeWRxuniFTLuDWJfA 1 0 475 0 5.1mb 5.1mb
green open kibana_sample_data_flights YnASLIEoROG6b7mFnnx2DQ 1 0 13059 0 6.3mb 6.3mb
green open kibana_sample_data_logs TUmwnhpKSkSAKfXptgNY4A 1 0 14005 0 11.2mb 11.2mb

  查看状态为绿色的索引

GET /_cat/indices?v&health=green

health status index                        uuid                   pri rep docs.count docs.deleted store.size pri.store.size
green open .kibana_task_manager urh_dFyVTnuweARB0GvYdw 1 0 2 9 25.1kb 25.1kb
green open kibana_sample_data_logs TUmwnhpKSkSAKfXptgNY4A 1 0 14005 0 11.2mb 11.2mb
green open .kibana_1 lIWHe_2HT3ujqHcWG-Vt3w 1 0 140 0 1mb 1mb
green open kibana_sample_data_ecommerce O7wX0YeWRxuniFTLuDWJfA 1 0 4675 0 5.1mb 5.1mb
green open kibana_sample_data_flights YnASLIEoROG6b7mFnnx2DQ 1 0 13059 0 6.3mb 6.3mb

  按照文档的个数进行索引排序

GET /_cat/indices?v&s=docs.count:desc

health status index                        uuid                   pri rep docs.count docs.deleted store.size pri.store.size
green open kibana_sample_data_logs TUmwnhpKSkSAKfXptgNY4A 1 0 14005 0 11.2mb 11.2mb
green open kibana_sample_data_flights YnASLIEoROG6b7mFnnx2DQ 1 0 13059 0 6.3mb 6.3mb
yellow open movies _S2PT287T_aP0QN1S1GvAw 1 1 9743 0 1.3mb 1.3mb
green open kibana_sample_data_ecommerce O7wX0YeWRxuniFTLuDWJfA 1 0 4675 0 5.1mb 5.1mb
green open .kibana_1 lIWHe_2HT3ujqHcWG-Vt3w 1 0 140 0 1mb 1mb
green open .kibana_task_manager urh_dFyVTnuweARB0GvYdw 1 0 2 9 25.1kb 25.1kb

  查看以kibana开头索引的health,index,pri,rep,docs,count,mt字段

GET /_cat/indices/kibana*?pri&v&h=health,index,pri,rep,docs,count,mt

health index                        pri rep mt pri.mt
green kibana_sample_data_flights 1 0 1 1
green kibana_sample_data_ecommerce 1 0 0 0
green kibana_sample_data_logs 1 0 1 1

  查看每条索引占得空间

GET /_cat/indices?v&h=i,tm&s=tm:desc

i                                 tm
kibana_sample_data_ecommerce 161.8kb
kibana_sample_data_logs 54.6kb
.kibana_1 47.5kb
kibana_sample_data_flights 37.7kb
movies 25.1kb
.kibana_task_manager 4.4kb

  查看集群状态

GET /_cluster/health

{
"cluster_name" : "elasticsearch",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 6,
"active_shards" : 6,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 1,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 85.71428571428571
}

  查看集群分片信息

GET /_cat/shards

.kibana_task_manager         0 p STARTED        2 25.1kb 127.0.0.1 ES
movies 0 p STARTED 9743 1.3mb 127.0.0.1 ES
movies 0 r UNASSIGNED
kibana_sample_data_ecommerce 0 p STARTED 4675 5.1mb 127.0.0.1 ES
.kibana_1 0 p STARTED 140 1mb 127.0.0.1 ES
kibana_sample_data_flights 0 p STARTED 13059 6.3mb 127.0.0.1 ES
kibana_sample_data_logs 0 p STARTED 14005 11.2mb 127.0.0.1 ES

  自动生成文档的ID

POST chenxij/_doc
{
"user":"kk",
"data":"902",
"message":"tgfd"
} {
"_index" : "chenxi",
"_type" : "_doc",
"_id" : "UnaqP24B9uEN4vPi-rFS",
"_version" : 1,
"result" : "created",
"_shards" : {
"total" : 2,
"successful" : 1,
"failed" : 0
},
"_seq_no" : 3,
"_primary_term" : 1
}

   指定ID如果ID存在就报错

POST cx/_doc/1?op_type=create
{
"trc":"kk",
"hjj":"665",
"qwsx":"ugfd"
} {
"error": {
"root_cause": [
{
"type": "version_conflict_engine_exception",
"reason": "[1]: version conflict, document already exists (current version [1])",
"index_uuid": "g-E8rbQoSomDGTtk3uYbmw",
"shard": "0",
"index": "cx"
}
],
"type": "version_conflict_engine_exception",
"reason": "[1]: version conflict, document already exists (current version [1])",
"index_uuid": "g-E8rbQoSomDGTtk3uYbmw",
"shard": "0",
"index": "cx"
},
"status": 409
}

  查看文档

GET chenxi/_doc/1

{
"_index" : "chenxi",
"_type" : "_doc",
"_id" : "1",
"found" : false
}

  更新文档添加字段

POST cx/_update/1/
{
"doc":{
"cgfd":"tgfgygy",
"ertyui":"rtyu"
}
} {
"_index" : "cx",
"_type" : "_doc",
"_id" : "1",
"_version" : 2,
"result" : "noop",
"_shards" : {
"total" : 0,
"successful" : 0,
"failed" : 0
}
}

  查看更新后的文档

GET cx/_doc/1

{
"_index" : "cx",
"_type" : "_doc",
"_id" : "1",
"_version" : 2,
"_seq_no" : 4,
"_primary_term" : 1,
"found" : true,
"_source" : {
"trc" : "kk",
"hjj" : "665",
"qwsx" : "ugfd",
"ertyui" : "rtyu",
"cgfd" : "tgfgygy"
}
}

  BULK 的API 是一次请求多次调用的API,减少网络的绘画建立

kibana 开发工具介绍的更多相关文章

  1. PHP开发工具介绍之zendStudio

    1.PHP开发工具介绍之zendStudio 下载:进入官网:http://www.zend.com/en/products/studio 选择下载安装 注意这里的工作空间要和你Apache的工作目录 ...

  2. Sublime Text前端开发工具介绍

    Sublime Text前端开发工具介绍.. Sublime Text这款前端开发工具中的非常优秀的特性进行介绍 ------------ sublime text 3 3114 注册码 —– BEG ...

  3. java基础-Eclipse开发工具介绍

    java基础-Eclipse开发工具介绍 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 所谓工欲善其事必先利其器,即将身为一名Java开发工程师怎么能没有一款好使的IDE呢?今天就 ...

  4. java基础-Idea开发工具介绍

    java基础-Idea开发工具介绍 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 之前给大家介绍过一款Java的IDE叫eclipse,有些功能用起来不是很得心应手,尤其是在导报的 ...

  5. web标准 浏览器介绍 开发工具介绍 HTML介绍 HTML颜色介绍 规范 HTML结构详解 {前端之前端初识}

    前端之前端初识   前端初识 本节目录 一 web标准 二 浏览器介绍 三 开发工具介绍 四 HTML介绍 五 HTML颜色介绍 六 规范 七 HTML结构详解 一 web标准 web准备介绍: 1. ...

  6. python3.4学习笔记(五) IDLE显示行号问题,插件安装和其他开发工具介绍

    python3.4学习笔记(五) IDLE显示行号问题,插件安装和其他开发工具介绍 IDLE默认不能显示行号,使用ALT+G 跳到对应行号,在右下角有显示光标所在行.列.pycharm免费社区版.Su ...

  7. 编程入门-Java开发工具介绍及Eclipse安装

    编程入门-Java开发工具介绍及Eclipse安装 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 一.Java开发工具介绍 "源代码"一般是文字,所以可以使用记 ...

  8. C# 快速开发框架搭建—开发工具介绍

    C# 快速开发框架搭建—开发工具介绍 一.VS2013,SQL SERVER R22008 以上两种工具如有不会者自行百度学习下. 二.动软代码生成器 对于经典的三层架构框架来说,使用动软代码生成器会 ...

  9. C#入门教程(一)–.Net平台技术介绍、C#语言及开发工具介绍-打造C#学习教程

    一.什么是.Net平台? .Net平台是微软搭建的技术平台,技术人员在此平台上进行应用的搭建与开发.它提供了运行所必须的环境.NET Framework类库以及CLR(公共语言运行时).好比我们人类的 ...

随机推荐

  1. Ubuntu安装程序报错:无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)

    问题描述:在使用Ubuntu系统时安装程序时出现下面的报错. E: 无法获得锁 /var/lib/dpkg/lock-frontend - open (11: 资源暂时不可用)E: Unable to ...

  2. 刷题3. Longest Substring Without Repeating Characters

    一.题目 Longest Substring Without Repeating Characters,具体请自行搜索. 这个题目,我看了一下,经过一番思考,我觉得实现起来不是很复杂. 但要做到bug ...

  3. Bugku-CTF分析篇-这么多数据包(这么多数据包找找吧,先找到getshell的流)

    这么多数据包 这么多数据包找找吧,先找到getshell的流

  4. bugku 变量1

    变量1 题目信息 flag In the variable ! <?php error_reporting(0); include "flag1.php"; highligh ...

  5. jquery 复制

    Jq将字符串复制粘贴到剪贴板     第一种: 自己测试时 只适合于input 和textarea 但是针对于其他标签的复制就不能用了.代码如下: <!DOCTYPE html> < ...

  6. FileOutputStream,BufferedOutputStream,FileWriter 效率比较

    测试代码: /** * 写文件 * FileOutputStream, BufferedOutputStream, FileWriter * 三个流 效率比较 */ @Test public void ...

  7. Java - Test - TestNG: Idea 添加 TestNG 依赖

    1. 概述 Idea 开发的 maven 添加 testng 依赖 2. 背景 最近复习 TestNG 尝试搭建环境 发现教材和网上很多的教程, 都是 eclipse 的 我用的是 idea 这个貌似 ...

  8. Go_bufio包

    bufio 是通过缓冲来提高效率. io操作本身的效率并不低,低的是频繁的访问本地磁盘的文件.所以bufio就提供了缓冲区(分配一块内存),读和写都先在缓冲区中,最后再读写文件,来降低访问本地磁盘的次 ...

  9. 私域流量&公域流量

    所谓私域流量,指的是个人拥有完全的支配权的账号所沉淀的粉丝.客户.流量,可以直接触达的,多次利用的流量.比如说QQ号.微信号.社群上的粉丝或者顾客,就属于是私域流量. 而与之相对的,就是所谓的公域流量 ...

  10. css中定义变量

    css中定义变量 定义变量可分多种情况: 1.定义全局变量 :root { --borderColor: #ccc;} 2.定义某元素下的变量 .look{ --borderColor: #ccc;} ...