原文:Elasticsearch通过elasticsearch-curator 插件来定期删除Index

Elasticsearch管理中索引的管理非常重要。基于磁盘空间和性能的考量,索引的生命周期管理显得尤为重要。Curator允许对索引创建 删除等操作,下面是我们借助 elasticsearch curator 插件来定期删除index.本文主要介绍elasticsearch curator 插件的安装步骤。 Step 下载 https: www.elastic.co guide en elast ...

2020-06-15 14:48 0 792 推荐指数:

查看详情

定期删除elasticsearchindex 索引

#!/bin/bashfind /data/elasticsearch/data/pro-kz-log/nodes/0/indices/ -type d -mtime +7 | awk -F"/" '{print $9}' | grep -v kibana | uniq > /home ...

Tue Aug 29 17:47:00 CST 2017 0 1485
附9 elasticsearch-curator + Linux定时任务

官网教程入口:https://www.elastic.co/guide/en/elasticsearch/client/curator/current/index.html 一、下载安装 下载:sudo pip install elasticsearch-curator 更新 ...

Sat Sep 24 00:35:00 CST 2016 0 3790
Elasticsearch -删除索引(index

删除单个: DELETE /indexcurl -XDELETE 'http://192.169.1.666:9200/index 你也可以这样删除多个索引: DELETE /index_one,index_two curl -XDELETE 'http://192.169.1.666 ...

Fri Mar 05 00:55:00 CST 2021 0 351
Elasticsearch查询Index以及删除

查询Index信息 GET /bank HTTP/1.1Host: localhost:9200 { "bank": { "aliases": {}, "mappings": { "_doc": { "properties": { "account_number": { "type ...

Wed Mar 20 22:55:00 CST 2019 0 1338
ElasticSearch Curator使用教程

[TOC] 在日常工作中,当我们需要去维护一个elasitcsearch集群以期能稳定工作。通常需要有计划的做很多事情。比如定期的清除数据,合并 segment,备份恢复等。如果我们具备编程能力,这些工作一般都是可以通过各种编程语言根据我们的需求,调用elasticsearch的API可以完成 ...

Fri Jul 27 00:39:00 CST 2018 0 1140
ElasticSearch——Curator索引管理

简介 curator 是一个官方的,可以管理elasticsearch索引的工具,可以实现创建,删除,段合并等等操作。详见官方文档 功能 curator允许对索引和快照执行许多不同的操作,包括: 从别名添加或删除索引(或两者!) 更改分片路由分配 关闭索引 ...

Fri Dec 06 23:24:00 CST 2019 0 264
elasticsearch index 之 create index(二)

创建索引需要创建索引并且更新集群index matedata,这一过程在MetaDataCreateIndexService的createIndex方法中完成。这里会提交一个高优先级,AckedClusterStateUpdateTask类型的task。索引创建需要即时得到反馈,异常这个task ...

Mon Jun 12 00:42:00 CST 2017 0 6265
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM