How to find out list of indices in elastic which are not having aliases

Hi All,

Could any one help me how to find out list of indices which are not having aliases

Thanks in advance !

May be use https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-alias.html and https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html and try to find which ones do not appear in the former?

I believe this can be done in 2 steps :

  1. Get the list of the indices
    GET _cat/indices
  2. Get the list of indices having an alias
    GET _cat/aliases

Then you can create an array with the difference between the 2 previous results.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.