Open hieuhtr opened 6 years ago
https://www.elastic.co/guide/en/elasticsearch/client/curator/current/singleton-cli.html
❯❯ curator_cli --host search-cluster-gnyqcxxx.eu-central-1.es.amazonaws.com --port 80 show_indices --verbose
.kibana open 52.5KB 8 1 1 2018-03-01T06:45:28Z cwl-2018.03.01 open 116.9KB 14 5 1 2018-03-01T15:55:40Z cwl-2018.03.02 open 378.9KB 35 5 1 2018-03-02T09:32:01Z cwl-2018.03.05 open 125.4KB 14 5 1 2018-03-05T11:13:25Z cwl-2018.03.06 open 653.8KB 144 5 1 2018-03-06T03:39:24Z cwl-2018.03.07 open 242.4KB 18 5 1 2018-03-07T03:57:36Z
- Show all indices:
❯❯ curator_cli show_indices
.kibana elastalert_status filebeat-2017.07.01 filebeat-2017.07.02 filebeat-2017.07.03 filebeat-2017.07.04 filebeat-2017.07.05 filebeat-2017.07.06 filebeat-2017.07.07 ...
- Delete indices with prefix
❯❯ curator_cli delete_indices --filter_list '{"filtertype":"pattern","kind":"prefix","value":"filebeat-2017.07"}'
Source
https://www.elastic.co/guide/en/elasticsearch/client/curator/current/singleton-cli.html
Internals
.kibana open 52.5KB 8 1 1 2018-03-01T06:45:28Z cwl-2018.03.01 open 116.9KB 14 5 1 2018-03-01T15:55:40Z cwl-2018.03.02 open 378.9KB 35 5 1 2018-03-02T09:32:01Z cwl-2018.03.05 open 125.4KB 14 5 1 2018-03-05T11:13:25Z cwl-2018.03.06 open 653.8KB 144 5 1 2018-03-06T03:39:24Z cwl-2018.03.07 open 242.4KB 18 5 1 2018-03-07T03:57:36Z
❯❯ curator_cli show_indices
.kibana elastalert_status filebeat-2017.07.01 filebeat-2017.07.02 filebeat-2017.07.03 filebeat-2017.07.04 filebeat-2017.07.05 filebeat-2017.07.06 filebeat-2017.07.07 ...
❯❯ curator_cli delete_indices --filter_list '{"filtertype":"pattern","kind":"prefix","value":"filebeat-2017.07"}'