Hello.
I am changing the organization of the indexes in my cluster. I have added an alias to the template and from now all indexes I need will get a correct view alias.
But I have a bunch (1k of them) without view aliases. When I try to use * it's not working. Is there another way than adding an alias for each one of them ?
That's not comforting because until now i have like 3k of them so maybe there is some partial resolution for this ? Maybe a script in bash with curl command on it ?
There is nothing native, but it can be easily automated.
You can use the GET _cat/indices API to get a list of your indices and from this list write a bash script with curl to make the requests to add the alias.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.