Reindex multiple indices - missing data stream

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:

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:

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:

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

Adding the alias fail:

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

It fails with:

"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,

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