how to get _index value in python elasticsearch code example Example: how to get elasticsearch index list using python for index in es.indices.get('*'): print index