POST /<index-name>/_close
Instead of <index-name>, it should have the index for that specific date you want to close.
Please keep in mind that you will be able to use "*" to specify patterns that identify the index. So the command: POST /wazuh-alerts-4.x-2025.08.*/_close - will close all the alerts in August 2025 (you can do the same to close all the indexes for the whole year).
Also, with this, to automate the process, it will be possible to create a crontab script on the server side that will run it for you every day to close an index that is older than 200 days. curl -X POST "localhost:9200/ <index-name>/_close" - in this case, you will need to set <index-name> pattern according to the date you need.