elasticsearch时间格式索引管理工具: curator
2014-10-31 12:11
211 查看
如果使用elasticsearch时,你是使用时间作为索引,那么可以通过curator对索引进行管理。通过curator可以大大简化索引的管理成本。
github: https://github.com/elasticsearch/curator
缺省的选项:
curator匹配索引的方式是:prefix + 时间字符串格式 + suffix
其中时间字符串格式可以通过使用python strftime formatting构造。
使用方法:
1. 删除30天前的索引
2. 关闭14天前的所有索引
3. 列出所有索引
github: https://github.com/elasticsearch/curator
缺省的选项:
--host localhost --port 9200 -t (or --timeout) 30 -T (or --time-unit) days -p (or --prefix) logstash-
curator匹配索引的方式是:prefix + 时间字符串格式 + suffix
其中时间字符串格式可以通过使用python strftime formatting构造。
使用方法:
1. 删除30天前的索引
curator delete --older-than 30
2. 关闭14天前的所有索引
curator close --older-than 14
3. 列出所有索引
curator show --show-indices
相关文章推荐
- ElasticSearch 命令行管理工具Curator
- es索引管理工具——curator
- Elasticsearch中的document数据格式,简单的集群管理,商品的索引的CRUD操作(学习资料记录)
- 高效管理 Elasticsearch 中基于时间的索引——本质是在利用滚动模式做数据的冷热分离,热索引可以用ssd
- 常见时间管理工具
- 推荐时间管理工具
- 个人管理/时间管理 辅助工具套件分享
- 我也来谈谈时间管理方式及工具
- Active Server Pages, ASP 0113 (0x80004005)超过了脚本运行的最长时间。可以为 Server.ScriptTimeOut 属性指定新值或更改 IIS 管理工具中的相应值来更改此限制
- 我的时间管理工具 [GTD]
- 常见时间管理工具
- 时间管理GTD工具
- 妙用工具做好时间管理之一方法与原则
- 工作有效性之时间管理工具
- elasticsearch集群管理工具head
- 时间管理工具推荐
- oracle的管理工具OEM以及重建索引
- 时间管理工具-Klok
- 相片管理必备:文件批量改名工具 自动以日期时间命名