Command
curl -X POST 'http://localhost:9200/_reindex?pretty' -H 'Content-Type: application/json' -d '{"source":{"index":"old_index"},"dest":{"index":"new_index"}}'
Examples
Reindex logs
curl -X POST 'http://localhost:9200/_reindex?pretty' -H 'Content-Type: application/json' -d '{"source":{"index":"logs-2024"},"dest":{"index":"logs-2025"}}'