es索引管理工具——curator
2017-11-16 10:48
127 查看
curator_run.sh脚本
==================================================
#!/bin/bash
CURATOR_PROG="/usr/bin/curator"
CURATOR_PATH="/data/disk/sda1/software/scripts/curator"
CURATOR_CONF="${CURATOR_PATH}/curator.yml"
CURATOR_ACTIONS_CONF="${CURATOR_PATH}/actions.yml"
#$CURATOR_PROG --dry-run --config $CURATOR_CONF $CURATOR_ACTIONS_CONF
$CURATOR_PROG --config $CURATOR_CONF $CURATOR_ACTIONS_CONF
curator.yml配置文件
==================================================
---
#
# Remember, leave a key empty if there is no value. None will be a string,
# not a Python "NoneType"
client:
hosts:
- 127.0.0.1
port: 9200
use_ssl: False
ssl_no_validate: False
timeout: 120
master_only: False
logging:
loglevel: INFO
logfile: /data/disk/sda1/software/scripts/curator/curator.log
#logfile:
logformat: default
#blacklist: ['collect300', 'collect3600', 'collect86400']
actions.yml
==================================================
---
#
# Remember, leave a key empty if there is no value. None will be a string,
# not a Python "NoneType"
#
# Also remember that all examples have 'disable_action' set to True. If you
# want to use this action as a template, be sure to set this to False after
# copying it.
actions:
hot_to_warm:
action: allocation
description: >-
Apply shard allocation routing to 'require' 'box_type=cold' for hot/warm node
setup for test- indices older than 7 days, based on index_creation
date
options:
key: box_type
value: warm
allocation_type: require
wait_for_completion: False
timeout_override:
continue_if_exception: False
ignore_empty_list: True
disable_action: False
filters:
- filtertype: pattern
kind: regex
value: '^.*-(collect300|collect3600|collect86400)-.*$'
exclude: True
- filtertype: age
source: name
direction: older
timestring: '%Y%m%d'
unit: days
unit_count: 2
indice-close:
action: close
description: >-
Close indices older than 14 days (based on index name), for test-
prefixed indices.
options:
delete_aliases: False
timeout_override:
continue_if_exception: False
ignore_empty_list: True
disable_action: Fal
4000
se
filters:
- filtertype: pattern
kind: regex
value: '^.*-(collect300|collect3600|collect86400)-.*$'
exclude: True
- filtertype: age
source: name
direction: older
timestring: '%Y%m%d'
unit: days
unit_count: 3
==================================================
#!/bin/bash
CURATOR_PROG="/usr/bin/curator"
CURATOR_PATH="/data/disk/sda1/software/scripts/curator"
CURATOR_CONF="${CURATOR_PATH}/curator.yml"
CURATOR_ACTIONS_CONF="${CURATOR_PATH}/actions.yml"
#$CURATOR_PROG --dry-run --config $CURATOR_CONF $CURATOR_ACTIONS_CONF
$CURATOR_PROG --config $CURATOR_CONF $CURATOR_ACTIONS_CONF
curator.yml配置文件
==================================================
---
#
# Remember, leave a key empty if there is no value. None will be a string,
# not a Python "NoneType"
client:
hosts:
- 127.0.0.1
port: 9200
use_ssl: False
ssl_no_validate: False
timeout: 120
master_only: False
logging:
loglevel: INFO
logfile: /data/disk/sda1/software/scripts/curator/curator.log
#logfile:
logformat: default
#blacklist: ['collect300', 'collect3600', 'collect86400']
actions.yml
==================================================
---
#
# Remember, leave a key empty if there is no value. None will be a string,
# not a Python "NoneType"
#
# Also remember that all examples have 'disable_action' set to True. If you
# want to use this action as a template, be sure to set this to False after
# copying it.
actions:
hot_to_warm:
action: allocation
description: >-
Apply shard allocation routing to 'require' 'box_type=cold' for hot/warm node
setup for test- indices older than 7 days, based on index_creation
date
options:
key: box_type
value: warm
allocation_type: require
wait_for_completion: False
timeout_override:
continue_if_exception: False
ignore_empty_list: True
disable_action: False
filters:
- filtertype: pattern
kind: regex
value: '^.*-(collect300|collect3600|collect86400)-.*$'
exclude: True
- filtertype: age
source: name
direction: older
timestring: '%Y%m%d'
unit: days
unit_count: 2
indice-close:
action: close
description: >-
Close indices older than 14 days (based on index name), for test-
prefixed indices.
options:
delete_aliases: False
timeout_override:
continue_if_exception: False
ignore_empty_list: True
disable_action: Fal
4000
se
filters:
- filtertype: pattern
kind: regex
value: '^.*-(collect300|collect3600|collect86400)-.*$'
exclude: True
- filtertype: age
source: name
direction: older
timestring: '%Y%m%d'
unit: days
unit_count: 3
相关文章推荐
- elasticsearch时间格式索引管理工具: curator
- es集群web管理工具cerebro
- Lucene.Net索引管理工具NLuke使用帮助
- ElasticSearch 命令行管理工具Curator
- Luke 5—— 可视化 Lucene 索引查看工具,可以查看ES的索引
- oracle的管理工具OEM以及重建索引
- mysql的图形化管理工具创建字段索引
- python多版本管理工具pyenv安装
- Python 包管理工具
- 解决【必须使用“角色管理工具”安装或配置Microsoft .NET Framework 3.5 SP1】的方法
- 虚拟环境管理工具之: anaconda (安装-使用)-Mac OS
- [慎用] Windows10 第三方磁盘管理工具
- keytool – 密钥和证书管理工具
- 远程管理linux的小工具
- 【ITOO-工具】一个霸气的项目管理平台--Confluence(2)
- 【Java 安全技术探索之路系列:J2SE安全架构】之六:安全管理工具
- 网络管理之IP计算工具
- MAC 上使用MySQL Workbench工具管理mysql数据库时遇到的一些问题及解决方法
- supervisor进程管理工具
- 文献管理工具mendeley登录问题