Using reindex API against multiple date-based indices

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

You can use use wildcards, but I think that'd only apply if you wanted to move from daily to weekly/monthly.

Yeah, it doesn't have a thing to build the destination index name based on the source index name. Sorry!

OK thanks. Would be a cool feature for the future :slight_smile: