How to Generate UUID from Index Name?

Hello everyone,

I have some index patterns setup in my Elasticsearch. I see the index name gets encoded as a UUID in the URL (the value for the key “index:” in the URL once an index is selected).

How can I go about generating this UUID from the index name? I would prefer not to use any of the APIs and use strictly local code to generate the UUID from the index name. Does anyone know the method to generating these UUIDs?

From my understanding these mappings are stored in the .kibana file. I am looking for a method to generate the UUID based on the text and not looking in this file.


Hi Nebula

you will have to use kibana API to get index template ( data view) and that will give you uuid

try this on your kibana's dev tool for one of your index name

GET index_template_name/_settings

Hi Elasticforme,

Thank you for your reply. I am looking specifically for a way without using any of the APIs. Do you know how this UUID is generated?

Ideally, I would like to generate this value from the index name myself.


A UUID is unlike a hash not derived from any particular string, but rather based on other parameters like time and location, which makes it unique. It can not be derived from the index pattern. You will therefore need to use the APIs.

Thank you, for your answer. Much appreciated!

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