其他分享
首页 > 其他分享> > es按月归档

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": {}
  }
}


 

标签:basic,log,app,归档,202012,query,bizlog,es
来源: https://blog.csdn.net/tianlianchao1982/article/details/122578841