es按月归档

get /log_app_business_202012*/basic/_search
{
  "query": {
    "match_all": {}
  }
}

# 721

POST /_reindex
{
  "source": {
    "index": "log_app_business_202012*",
    "size": 5000
  },
  "dest": {
    "index": "log_app_business_m202012"
  }
}

get /log_app_business_m202012/basic/_search
{
  "query": {
    "match_all": {}
  }
}

delete /log_app_business_202012*


get /log_app_business_202012*/basic/_search
{
  "query": {
    "match_all": {}
  }
}


get /log_app_bizlog_dms_202012*/basic/_search
{
  "query": {
    "match_all": {}
  }
}

# 2603

POST /_reindex
{
  "source": {
    "index": "log_app_bizlog_dms_202012*",
    "size": 5000
  },
  "dest": {
    "index": "log_app_bizlog_dms_m202012"
  }
}

get /log_app_bizlog_dms_m202012/basic/_search
{
  "query": {
    "match_all": {}
  }
}

delete /log_app_bizlog_dms_202012*

get /log_app_bizlog_dms_202012*/basic/_search
{
  "query": {
    "match_all": {}
  }
}


 

上一篇:SpringCloud第12讲:调用链监控工具Sleuth+Zipkin


下一篇:elasticsearch入门(下载安装)