Is there a way to check a specific field belong to which indices?


(Jason Y) #1

hello,
my elasticsearch has more than 500 indices and each index has many fields. i wonder if there is a API/query to check a specific field name belong to which indices. e.g. "abc" field belongs to which index.

i guess i can find this via index _mapping result, but i am using dynamic mapping which creates indices daily basis and my elasticsearch stores up to 90days, so it is not really good for me and would understand better way.

please advise.

thanks!


(Jason Y) #2

i just found a trick myself with querying using "GET */_mapping" on kibana then find target field name in the result window to see where the field belongs to. i successfully found the indices through this way, but still wonder if there are better way to find this. please advise. thank you!