690 shaares
3 liens privés
3 liens privés
Delete index with special characters :
%% : escape character for elasticsearch
{ : escape character for unix shell
curl -XDELETE 'localhost:9200/log_%%{typeindex}_2015.12.24?pretty'
" .... 'aaa' ..." : escape ' character
curl -XDELETE "localhost:9200/log_%%{fields['type']}_2015.12.24?pretty"
List all indexes :
curl 'localhost:9200/_cat/indices?v' | grep %