Skip to content

Instantly share code, notes, and snippets.

@PSJoshi
Created March 16, 2015 10:02
Show Gist options
  • Select an option

  • Save PSJoshi/fa09dc45adc9ff62ff1c to your computer and use it in GitHub Desktop.

Select an option

Save PSJoshi/fa09dc45adc9ff62ff1c to your computer and use it in GitHub Desktop.
elasticsearch-curator
[root@mgr ELK]# curator --version
curator, version 3.0.0
[root@mgr ELK]$ which curator
/usr/bin/curator
[root@mgr ELK]# curator --host 10.4.0.45 bloom indices --time-unit days --timestring "%Y-%m-%d" --older-than 2
2015-03-16 15:21:03,404 INFO Job starting...
2015-03-16 15:21:03,556 WARNING Bloom filters no longer exist for search in Elasticsearch since v1.4.0
[root@mgr ELK]# curator --host 10.4.0.45 close indices --time-unit days --timestring "%Y-%m-%d" --older-than 15
ERROR. No indices matched provided args.
[root@mgr ELK]# curator --host 10.4.0.45 close indices --time-unit days --timestring "%Y-%m-%d" --older-than 3
2015-03-16 15:26:42,958 INFO Job starting...
Ref links -
https://github.com/elastic/curator/wiki/index-selection
https://github.com/elastic/curator/wiki/Command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment