# Reindex multiple indices - missing data stream

**URL:** <https://discuss.elastic.co/t/reindex-multiple-indices-missing-data-stream/352002>\
**Category:** Elasticsearch\
**Tags:** reindex\
**Created:** [January 29, 2024, 2:45pm UTC](https://discuss.elastic.co/t/reindex-multiple-indices-missing-data-stream/352002 "2024-01-29T14:45:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oscar\_Yerpes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oscar_yerpes/32/126115_2.png) [@Oscar\_Yerpes](https://discuss.elastic.co/u/Oscar_Yerpes)\
**Post date:** [January 29, 2024, 2:45pm UTC](https://discuss.elastic.co/t/reindex-multiple-indices-missing-data-stream/352002/1 "2024-01-29T14:45:57Z")

</div>

Hello all,

Elastic version is 8.1

I have daily indices from an ILM that I would like to reindex in a single monthly index.

I've tried the following:

```auto
POST _reindex
{
  "source": {
    "index": ".ds-hpc-slurm-2023.10.*”
  },
  "dest": {
    "index": ".ds-hpc-slurm-2023.10"
  }
}

```

The index is created, but it's not assigned to the original data stream "hpc-slurm".  
If I try to assign this new index to the lifecycle policy of the original indices, I get an alias error:

```auto
Policy HPC-slurm is configured for rollover, but index ds-hpc-slurm-2023.11 does not have an alias, which is required for rollover.

```

This is the index template:

```auto
GET _index_template/hpc-slurm
  "template": {
    "settings": {
      "index": {
        "lifecycle": {
          "name": "HPC-slurm",
          "rollover_alias": "hpc-slurm-{now/d}-000001"

```

Adding the alias fail:

```auto
POST _aliases
{
  "actions": [
    {
      "add": {
        "index": "ds-hpc-slurm-2023.11",
        "alias": "hpc-slurm-{now/d}-000001"
      }
    }
  ]
}

```

It fails with:

```auto
"type" : "invalid_alias_name_exception",
    "reason" : "Invalid alias name [hpc-slurm-{now/d}-000001]: must not contain the following characters [, \", *, \\, <, |, ,, >, /, ?]"

```

I'm a little bit lost with the alias thing, perhaps there's a better way to reindex indices in a ILM?

Thanks in advance,  
Oscar

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 26, 2024, 2:46pm UTC](https://discuss.elastic.co/t/reindex-multiple-indices-missing-data-stream/352002/2 "2024-02-26T14:46:13Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
