自学内容网 自学内容网

ES常见命令汇总

GET /_alias/content_erp_nlp_help_alia

POST /_aliases
{
  "actions" : [
    {
      "remove" : {
        "index" : "content_erp_nlp_help202407231731",
        "alias" : "content_erp_nlp_help_alia"
      }
    }
  ]
}

GET /_alias/content_erp_nlp_help_alia_test

GET /_index_template/content_erp_nlp_help

GET /_cat/indices/content_erp_nlp_help_202407231749

GET /content_erp_nlp_help_202407231749/_settings

DELETE /content_erp_nlp_help202407231733


POST /content_erp_nlp_help_202407231749/_delete_by_query
{

  "query": {

    "match_all": {}

  }

}
 

关闭kibana里的监控,避免产生过多索引

DELETE /.monitoring-es-7-2024.07.24

DELETE .monitoring-kibana-7-2024.07.24

PUT _cluster/settings
{
  "persistent": {
    "xpack.monitoring.collection.enabled": false  
  }
}


原文地址:https://blog.csdn.net/wangqiaowq/article/details/140669567

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!