ElasticSearch之cat indices API

2023-11-30 12:01
文章标签 elasticsearch api cat indices

本文主要是介绍ElasticSearch之cat indices API,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

命令样例如下:

curl -X GET "https://localhost:9200/_cat/indices?v=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"

执行结果输出如下:

health status index            uuid                   pri rep docs.count docs.deleted store.size pri.store.size dataset.size
yellow open   my-index-000001  u8FNjxh8Rfy_awN11oDKYQ   1   1       1200            0     88.1kb         88.1kb       88.1kb
green  open   my-index-000002  nYFWZEO7TUiOjLQXBaYJpA   1   0          0            0       260b           260b         260b

查看帮助,命令如下:

curl -X GET "https://localhost:9200/_cat/indices?v=true&help=true&pretty" --cacert $ES_HOME/config/certs/http_ca.crt -u "elastic:ohCxPH=QBE+s5=*lo7F9"

执行结果输出如下:

health                           | h                              | current health status
status                           | s                              | open/close status
index                            | i,idx                          | index name
uuid                             | id,uuid                        | index uuid
pri                              | p,shards.primary,shardsPrimary | number of primary shards
rep                              | r,shards.replica,shardsReplica | number of replica shards
docs.count                       | dc,docsCount                   | available docs
docs.deleted                     | dd,docsDeleted                 | deleted docs
creation.date                    | cd                             | index creation date (millisecond value)
creation.date.string             | cds                            | index creation date (as string)
store.size                       | ss,storeSize                   | store size of primaries & replicas
pri.store.size                   |                                | store size of primaries
dataset.size                     |                                | total size of dataset
completion.size                  | cs,completionSize              | size of completion
pri.completion.size              |                                | size of completion
fielddata.memory_size            | fm,fielddataMemory             | used fielddata cache
pri.fielddata.memory_size        |                                | used fielddata cache
fielddata.evictions              | fe,fielddataEvictions          | fielddata evictions
pri.fielddata.evictions          |                                | fielddata evictions
query_cache.memory_size          | qcm,queryCacheMemory           | used query cache
pri.query_cache.memory_size      |                                | used query cache
query_cache.evictions            | qce,queryCacheEvictions        | query cache evictions
pri.query_cache.evictions        |                                | query cache evictions
request_cache.memory_size        | rcm,requestCacheMemory         | used request cache
pri.request_cache.memory_size    |                                | used request cache
request_cache.evictions          | rce,requestCacheEvictions      | request cache evictions
pri.request_cache.evictions      |                                | request cache evictions
request_cache.hit_count          | rchc,requestCacheHitCount      | request cache hit count
pri.request_cache.hit_count      |                                | request cache hit count
request_cache.miss_count         | rcmc,requestCacheMissCount     | request cache miss count
pri.request_cache.miss_count     |                                | request cache miss count
flush.total                      | ft,flushTotal                  | number of flushes
pri.flush.total                  |                                | number of flushes
flush.total_time                 | ftt,flushTotalTime             | time spent in flush
pri.flush.total_time             |                                | time spent in flush
get.current                      | gc,getCurrent                  | number of current get ops
pri.get.current                  |                                | number of current get ops
get.time                         | gti,getTime                    | time spent in get
pri.get.time                     |                                | time spent in get
get.total                        | gto,getTotal                   | number of get ops
pri.get.total                    |                                | number of get ops
get.exists_time                  | geti,getExistsTime             | time spent in successful gets
pri.get.exists_time              |                                | time spent in successful gets
get.exists_total                 | geto,getExistsTotal            | number of successful gets
pri.get.exists_total             |                                | number of successful gets
get.missing_time                 | gmti,getMissingTime            | time spent in failed gets
pri.get.missing_time             |                                | time spent in failed gets
get.missing_total                | gmto,getMissingTotal           | number of failed gets
pri.get.missing_total            |                                | number of failed gets
indexing.delete_current          | idc,indexingDeleteCurrent      | number of current deletions
pri.indexing.delete_current      |                                | number of current deletions
indexing.delete_time             | idti,indexingDeleteTime        | time spent in deletions
pri.indexing.delete_time         |                                | time spent in deletions
indexing.delete_total            | idto,indexingDeleteTotal       | number of delete ops
pri.indexing.delete_total        |                                | number of delete ops
indexing.index_current           | iic,indexingIndexCurrent       | number of current indexing ops
pri.indexing.index_current       |                                | number of current indexing ops
indexing.index_time              | iiti,indexingIndexTime         | time spent in indexing
pri.indexing.index_time          |                                | time spent in indexing
indexing.index_total             | iito,indexingIndexTotal        | number of indexing ops
pri.indexing.index_total         |                                | number of indexing ops
indexing.index_failed            | iif,indexingIndexFailed        | number of failed indexing ops
pri.indexing.index_failed        |                                | number of failed indexing ops
merges.current                   | mc,mergesCurrent               | number of current merges
pri.merges.current               |                                | number of current merges
merges.current_docs              | mcd,mergesCurrentDocs          | number of current merging docs
pri.merges.current_docs          |                                | number of current merging docs
merges.current_size              | mcs,mergesCurrentSize          | size of current merges
pri.merges.current_size          |                                | size of current merges
merges.total                     | mt,mergesTotal                 | number of completed merge ops
pri.merges.total                 |                                | number of completed merge ops
merges.total_docs                | mtd,mergesTotalDocs            | docs merged
pri.merges.total_docs            |                                | docs merged
merges.total_size                | mts,mergesTotalSize            | size merged
pri.merges.total_size            |                                | size merged
merges.total_time                | mtt,mergesTotalTime            | time spent in merges
pri.merges.total_time            |                                | time spent in merges
refresh.total                    | rto,refreshTotal               | total refreshes
pri.refresh.total                |                                | total refreshes
refresh.time                     | rti,refreshTime                | time spent in refreshes
pri.refresh.time                 |                                | time spent in refreshes
refresh.external_total           | rto,refreshTotal               | total external refreshes
pri.refresh.external_total       |                                | total external refreshes
refresh.external_time            | rti,refreshTime                | time spent in external refreshes
pri.refresh.external_time        |                                | time spent in external refreshes
refresh.listeners                | rli,refreshListeners           | number of pending refresh listeners
pri.refresh.listeners            |                                | number of pending refresh listeners
search.fetch_current             | sfc,searchFetchCurrent         | current fetch phase ops
pri.search.fetch_current         |                                | current fetch phase ops
search.fetch_time                | sfti,searchFetchTime           | time spent in fetch phase
pri.search.fetch_time            |                                | time spent in fetch phase
search.fetch_total               | sfto,searchFetchTotal          | total fetch ops
pri.search.fetch_total           |                                | total fetch ops
search.open_contexts             | so,searchOpenContexts          | open search contexts
pri.search.open_contexts         |                                | open search contexts
search.query_current             | sqc,searchQueryCurrent         | current query phase ops
pri.search.query_current         |                                | current query phase ops
search.query_time                | sqti,searchQueryTime           | time spent in query phase
pri.search.query_time            |                                | time spent in query phase
search.query_total               | sqto,searchQueryTotal          | total query phase ops
pri.search.query_total           |                                | total query phase ops
search.scroll_current            | scc,searchScrollCurrent        | open scroll contexts
pri.search.scroll_current        |                                | open scroll contexts
search.scroll_time               | scti,searchScrollTime          | time scroll contexts held open
pri.search.scroll_time           |                                | time scroll contexts held open
search.scroll_total              | scto,searchScrollTotal         | completed scroll contexts
pri.search.scroll_total          |                                | completed scroll contexts
segments.count                   | sc,segmentsCount               | number of segments
pri.segments.count               |                                | number of segments
segments.memory                  | sm,segmentsMemory              | memory used by segments
pri.segments.memory              |                                | memory used by segments
segments.index_writer_memory     | siwm,segmentsIndexWriterMemory | memory used by index writer
pri.segments.index_writer_memory |                                | memory used by index writer
segments.version_map_memory      | svmm,segmentsVersionMapMemory  | memory used by version map
pri.segments.version_map_memory  |                                | memory used by version map
segments.fixed_bitset_memory     | sfbm,fixedBitsetMemory         | memory used by fixed bit sets for nested object field types and type filters for types referred in _parent fields
pri.segments.fixed_bitset_memory |                                | memory used by fixed bit sets for nested object field types and type filters for types referred in _parent fields
warmer.current                   | wc,warmerCurrent               | current warmer ops
pri.warmer.current               |                                | current warmer ops
warmer.total                     | wto,warmerTotal                | total warmer ops
pri.warmer.total                 |                                | total warmer ops
warmer.total_time                | wtt,warmerTotalTime            | time spent in warmers
pri.warmer.total_time            |                                | time spent in warmers
suggest.current                  | suc,suggestCurrent             | number of current suggest ops
pri.suggest.current              |                                | number of current suggest ops
suggest.time                     | suti,suggestTime               | time spend in suggest
pri.suggest.time                 |                                | time spend in suggest
suggest.total                    | suto,suggestTotal              | number of suggest ops
pri.suggest.total                |                                | number of suggest ops
memory.total                     | tm,memoryTotal                 | total used memory
pri.memory.total                 |                                | total user memory
search.throttled                 | sth                            | indicates if the index is search throttled
bulk.total_operations            | bto,bulkTotalOperation         | number of bulk shard ops
pri.bulk.total_operations        |                                | number of bulk shard ops
bulk.total_time                  | btti,bulkTotalTime             | time spend in shard bulk
pri.bulk.total_time              |                                | time spend in shard bulk
bulk.total_size_in_bytes         | btsi,bulkTotalSizeInBytes      | total size in bytes of shard bulk
pri.bulk.total_size_in_bytes     |                                | total size in bytes of shard bulk
bulk.avg_time                    | bati,bulkAvgTime               | average time spend in shard bulk
pri.bulk.avg_time                |                                | average time spend in shard bulk
bulk.avg_size_in_bytes           | basi,bulkAvgSizeInBytes        | average size in bytes of shard bulk
pri.bulk.avg_size_in_bytes       |                                | average size in bytes of shard bulk
dense_vector.value_count         | dvc,denseVectorCount           | total count of indexed dense vector
pri.dense_vector.value_count     |                                | total count of indexed dense vector

相关资料

  • cat indices API
  • Get index API
  • Apache Lucene Core
  • Nested field type
  • cat count API
  • Count API
  • API conventions
  • HTTP accept header

这篇关于ElasticSearch之cat indices API的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/436952

相关文章

Elasticsearch 在 Java 中的使用教程

《Elasticsearch在Java中的使用教程》Elasticsearch是一个分布式搜索和分析引擎,基于ApacheLucene构建,能够实现实时数据的存储、搜索、和分析,它广泛应用于全文... 目录1. Elasticsearch 简介2. 环境准备2.1 安装 Elasticsearch2.2 J

基于Flask框架添加多个AI模型的API并进行交互

《基于Flask框架添加多个AI模型的API并进行交互》:本文主要介绍如何基于Flask框架开发AI模型API管理系统,允许用户添加、删除不同AI模型的API密钥,感兴趣的可以了解下... 目录1. 概述2. 后端代码说明2.1 依赖库导入2.2 应用初始化2.3 API 存储字典2.4 路由函数2.5 应

C#集成DeepSeek模型实现AI私有化的流程步骤(本地部署与API调用教程)

《C#集成DeepSeek模型实现AI私有化的流程步骤(本地部署与API调用教程)》本文主要介绍了C#集成DeepSeek模型实现AI私有化的方法,包括搭建基础环境,如安装Ollama和下载DeepS... 目录前言搭建基础环境1、安装 Ollama2、下载 DeepSeek R1 模型客户端 ChatBo

ElasticSearch+Kibana通过Docker部署到Linux服务器中操作方法

《ElasticSearch+Kibana通过Docker部署到Linux服务器中操作方法》本文介绍了Elasticsearch的基本概念,包括文档和字段、索引和映射,还详细描述了如何通过Docker... 目录1、ElasticSearch概念2、ElasticSearch、Kibana和IK分词器部署

Java调用DeepSeek API的最佳实践及详细代码示例

《Java调用DeepSeekAPI的最佳实践及详细代码示例》:本文主要介绍如何使用Java调用DeepSeekAPI,包括获取API密钥、添加HTTP客户端依赖、创建HTTP请求、处理响应、... 目录1. 获取API密钥2. 添加HTTP客户端依赖3. 创建HTTP请求4. 处理响应5. 错误处理6.

Deepseek R1模型本地化部署+API接口调用详细教程(释放AI生产力)

《DeepseekR1模型本地化部署+API接口调用详细教程(释放AI生产力)》本文介绍了本地部署DeepSeekR1模型和通过API调用将其集成到VSCode中的过程,作者详细步骤展示了如何下载和... 目录前言一、deepseek R1模型与chatGPT o1系列模型对比二、本地部署步骤1.安装oll

浅析如何使用Swagger生成带权限控制的API文档

《浅析如何使用Swagger生成带权限控制的API文档》当涉及到权限控制时,如何生成既安全又详细的API文档就成了一个关键问题,所以这篇文章小编就来和大家好好聊聊如何用Swagger来生成带有... 目录准备工作配置 Swagger权限控制给 API 加上权限注解查看文档注意事项在咱们的开发工作里,API

一分钟带你上手Python调用DeepSeek的API

《一分钟带你上手Python调用DeepSeek的API》最近DeepSeek非常火,作为一枚对前言技术非常关注的程序员来说,自然都想对接DeepSeek的API来体验一把,下面小编就来为大家介绍一下... 目录前言免费体验API-Key申请首次调用API基本概念最小单元推理模型智能体自定义界面总结前言最

JAVA调用Deepseek的api完成基本对话简单代码示例

《JAVA调用Deepseek的api完成基本对话简单代码示例》:本文主要介绍JAVA调用Deepseek的api完成基本对话的相关资料,文中详细讲解了如何获取DeepSeekAPI密钥、添加H... 获取API密钥首先,从DeepSeek平台获取API密钥,用于身份验证。添加HTTP客户端依赖使用Jav

C#使用DeepSeek API实现自然语言处理,文本分类和情感分析

《C#使用DeepSeekAPI实现自然语言处理,文本分类和情感分析》在C#中使用DeepSeekAPI可以实现多种功能,例如自然语言处理、文本分类、情感分析等,本文主要为大家介绍了具体实现步骤,... 目录准备工作文本生成文本分类问答系统代码生成翻译功能文本摘要文本校对图像描述生成总结在C#中使用Deep