- Introduction
- Like a museum curator manages the exhibits and collections on display, Elasticsearch Curator helps you curate, or manage your time-series indices, with commands like:
- delete
- optimize
- close
- snapshot
- alias
- and more
- Like a museum curator manages the exhibits and collections on display, Elasticsearch Curator helps you curate, or manage your time-series indices, with commands like:
- Installation
- OS: CentOS base 6.4 64-bit
- yum -y install python-pip
- wget https://bootstrap.pypa.io/get-pip.py
- python get-pip.py
- pip install elasticsearch-curator
- pip install argparse
- Commands
- delete
$ curator delete --help usage: curator delete [-h] [-p PREFIX] [--timestring TIMESTRING] [-T TIME_UNIT] [--exclude-pattern EXCLUDE_PATTERN] [--older-than OLDER_THAN | --disk-space DISK_SPACE] optional arguments: -h, --help show this help message and exit -p PREFIX, --prefix PREFIX Prefix for the indices. Indices that do not have this prefix are skipped. Default: logstash- --timestring TIMESTRING Python strftime string to match your index definition, e.g. 2014.07.15 would be %Y.%m.%d -T TIME_UNIT, --time-unit TIME_UNIT Unit of time to reckon by: [hours|days|weeks] Default: days --exclude-pattern EXCLUDE_PATTERN Exclude indices matching provided pattern, e.g. 2014.06.08 --older-than OLDER_THAN Delete indices older than n TIME_UNITs --disk-space DISK_SPACE Delete indices beyond DISK_SPACE gigabytes.
- alias
$ curator alias --help usage: curator alias [-h] [-p PREFIX] [--timestring TIMESTRING] [-T TIME_UNIT] [--exclude-pattern EXCLUDE_PATTERN] --alias ALIAS [--alias-older-than ALIAS_OLDER_THAN | --unalias-older-than UNALIAS_OLDER_THAN] optional arguments: -h, --help show this help message and exit -p PREFIX, --prefix PREFIX Prefix for the indices. Indices that do not have this prefix are skipped. Default: logstash- --timestring TIMESTRING Python strftime string to match your index definition, e.g. 2014.07.15 would be %Y.%m.%d -T TIME_UNIT, --time-unit TIME_UNIT Unit of time to reckon by: [hours|days|weeks] Default: days --exclude-pattern EXCLUDE_PATTERN Exclude indices matching provided pattern, e.g. 2014.06.08 --alias ALIAS Alias name --alias-older-than ALIAS_OLDER_THAN Add indices older than n TIME_UNITs to alias --unalias-older-than UNALIAS_OLDER_THAN Remove indices older than n TIME_UNITs from alias
- delete
- Flags
- dry run: -n, --dry-run
- log file: -l, --logfile
- Reference
Friday, January 2, 2015
Curator
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.