Is there a way to use the new reindex API against date-based index naming? I’m trying to avoid having to hardcode/shell script this for 300 different indices…
POST /_reindex
{
"source": {
"index": "logstash-2015.11.01"
},
"dest": {
"index": "tmp-logstash-2015.11.01"
}
}
DELETE logstash-2015.11.01
POST /_reindex
{
"source": {
"index": "tmp-logstash-2015.11.01"
},
"dest": {
"index": "logstash-2015.11.01"
}
}
DELETE tmp-logstash-2015.11.01