zoukankan      html  css  js  c++  java
  • Curl elasticsearch

    1. 查看cluster state

    curl localhost:9200/_cluster/health?pretty
    Or
    curl localhost:9200/_cluster/health | jq .
    

    2. 只查看某字段

    curl localhost:9200/_nodes/stats/process?filter_path=**.max_file_descriptors | jq .
    

    3. 查看index

    curl -XGET "http://localhost:9200/_cat/indices"
    

    4.查看type

    curl -XGET "http://localhost:9200/.monitoring-es-6-2019.03.27/

    5. 查看id

    curl -XGET "http://localhost:9200/.monitoring-es-6-2019.03.27/_search"
    

    7. 查看id存储的内容

    curl -XGET "http://localhost:9200/.monitoring-es-6-2019.03.27/doc/_AfUvGkBMaZdBCqXemc_"
    

    8. 删除index

    curl -X DELETE elasticsearch.oohome.net:9200/logstat-test1
    

      

  • 相关阅读:
    leetcode-String to Integer (atoi)
    2014薪水
    Ubunt下的软件集
    ubuntu常用软件
    python模块安装
    ubuntu下玩三国杀
    递归函数
    匿名函数
    装饰器函数
    生成器
  • 原文地址:https://www.cnblogs.com/divl/p/10600008.html
Copyright © 2011-2022 走看看