Reindexing in elasticsearch

Hi,

I have a setup of ELK7.10v.
I want to reindex my data with multiple indices on monthly basis.
example: My existing index should create new_index with monthly basis.

I have index1 which contains 1 year of records, and wants to sperate those 1 year records by creating monthly basis index using the log timestamp.

example:
my_new_index-2021-01
my_new_index-2021-02
my_new_index-2021-03
my_new_index-2021-04

Kindly suggest, what will be the steps for doing this.

Regards,
Tahseen

You will need to use the reindex API and then add a query to only get data from each month - https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-reindex.html