Elasticsearch: get a list of indexes -



Elasticsearch: get a list of indexes -

is possible list of indexes match pattern e.g

this how list of indexes:

curl -xget 'localhost:9200/_stats/'

but couldn't find way of filter them list include indexes witch match "my_index_nr_1*" "*" wild card

[solution]

after using es quite while here utilize now, hope help else:

curl -xget '/_cat/indices/my_index_nr_1*'

you can add together "?v" @ end give headers of each column in result

there neat trick using _aliases command when combined wildcard show matching index names , associated indexes:

curl -xget 'http://localhost:9200/my_index_nr_1*/_aliases?pretty'

the result is:

{ "my_index_nr_1_test" : { "aliases" : { } } }

very helpful when have lot of indexes on cluster don't want see other stats information.

elasticsearch

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -