Elasticsearch指定时间之前的索引删除

http://192.168.1.50:9200/test_dev_log/messages/_query/

DELETE方法

{
  "query": {
        "range" : {
            "jm_timestamp" : { "from" : "2017-07-20T00:00:00.539Z", "to" : "2017-07-20T23:59:59.539Z"}
        }
  }

}

猜你喜欢

转载自blog.csdn.net/winy_lm/article/details/79803990
今日推荐