Get list of current hot indexes in elasticSearch

Viewed 39
  1. Is there a way to get a list of hot indexes (available for writing) in elasticsearch?
  2. if yes, is there a way to get that list associated only with specific alias?

Edit:

If we can improve on this point then even better: better solution without the need to iterate all over the indexes to find the hot indexes. but getting straight away only the hot indexes.

1 Answers

You can run GET _cat/aliases/alias-name?format=json and keep only the entries with is_write_index: true. That will get you the list of indices associated to the specific alias and currently being written to.

Related