# Moving data streams to warm phase dowsampling

**URL:** <https://discuss.elastic.co/t/moving-data-streams-to-warm-phase-dowsampling/361596>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [June 17, 2024, 7:24pm UTC](https://discuss.elastic.co/t/moving-data-streams-to-warm-phase-dowsampling/361596 "2024-06-17T19:24:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Honestabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/honestabe/32/122763_2.png) [@Honestabe](https://discuss.elastic.co/u/Honestabe)\
**Post date:** [June 17, 2024, 7:24pm UTC](https://discuss.elastic.co/t/moving-data-streams-to-warm-phase-dowsampling/361596/1 "2024-06-17T19:24:06Z")

</div>

```auto
POST _ilm/move/.ds-heartbeat-8.13.2-2024.04.29-000001
{
  "current_step": { 
    "phase": "warm",
    "action": "complete",
    "name": "complete"
  },
  "next_step": { 
    "phase": "warm",
    "action": "downsample",
    "name": "downsample"
  }
}

```

when I post the above in the dev tools console I get the following error

```auto
{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": """step [{"phase":"warm","action":"downsample","name":"downsample"}] for index [.ds-heartbeat-8.13.2-2024.04.29-000001] with policy [heartbeat] does not exist"""
      }
    ],
    "type": "illegal_argument_exception",
    "reason": """step [{"phase":"warm","action":"downsample","name":"downsample"}] for index [.ds-heartbeat-8.13.2-2024.04.29-000001] with policy [heartbeat] does not exist"""
  },
  "status": 400
}

```

when I runt it with out the name: dowsample (see below)

```auto
POST _ilm/move/.ds-heartbeat-8.13.2-2024.04.29-000001
{
  "current_step": { 
    "phase": "warm",
    "action": "complete",
    "name": "complete"
  },
  "next_step": { 
    "phase": "warm",
    "action": "downsample"
  }
}

```

it give me

```auto
{
  "acknowledged": true
}

```

but it does not actually downsample.

I know the documentation says that the name is required but I am not sure what the name would be.  
is there somthing I am missing?

this is what the index status shows

```auto
{
  "indices": {
    ".ds-heartbeat-8.13.2-2024.04.29-000001": {
      "index": ".ds-heartbeat-8.13.2-2024.04.29-000001",
      "managed": true,
      "policy": "heartbeat",
      "index_creation_date_millis": 1714434932756,
      "time_since_index_creation": "48.8d",
      "lifecycle_date_millis": 1717027191770,
      "age": "18.8d",
      "phase": "warm",
      "phase_time_millis": 1718651824709,
      "action": "complete",
      "action_time_millis": 1718651825509,
      "step": "complete",
      "step_time_millis": 1718651825509,
      "phase_execution": {
        "policy": "heartbeat",
        "phase_definition": {
          "min_age": "30d",
          "actions": {
            "downsample": {
              "fixed_interval": "5m",
              "wait_timeout": "1d"
            },
            "set_priority": {
              "priority": 50
            }
          }
        },
        "version": 6,
        "modified_date_in_millis": 1718388796908
      }
    }
  }
}

```

when I ran

```auto
POST _ilm/move/.ds-packetbeat-8.13.1-2024.05.03-000002
{
  "current_step": { 
    "phase": "hot",
    "action": "complete",
    "name": "complete"
  },
  "next_step": { 
    "phase": "warm"
  }
}

```

it just did the shrink action but not the dowsampling

---

<div class="post-metadata">

**Author:** ![Honestabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/honestabe/32/122763_2.png) [@Honestabe](https://discuss.elastic.co/u/Honestabe)\
**Post date:** [June 24, 2024, 4:46pm UTC](https://discuss.elastic.co/t/moving-data-streams-to-warm-phase-dowsampling/361596/2 "2024-06-24T16:46:48Z")

</div>

any ideas
