Best way to create time-series index in Elasticsearch?

I use a python script to index the data, template sulotion is exact what I looking for , thanks!