# Increase number of shards for an existing data stream

**URL:** https://discuss.elastic.co/t/increase-number-of-shards-for-an-existing-data-stream/352045
**Category:** Elasticsearch
**Created:** [January 30, 2024, 2:07am UTC](https://discuss.elastic.co/t/increase-number-of-shards-for-an-existing-data-stream/352045 "2024-01-30T02:07:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![gunlomboy](https://avatars.discourse-cdn.com/v4/letter/g/c0e974/32.png) [@gunlomboy](https://discuss.elastic.co/u/gunlomboy)
#### Post date: [January 30, 2024, 2:07am UTC](https://discuss.elastic.co/t/increase-number-of-shards-for-an-existing-data-stream/352045/1 "2024-01-30T02:07:19Z")

</div>

Hi,

I have been using the \_split API to change the number of shards on an existing index. This has been a simple task and has worked as expected.

I have not had much success doing the same for a data stream which may also contain a number of rolled-over indices (managed by ILM).

Are there any pointers for how to achieve this? I don't want to delete the existing data which would be an easy solution.

Thanks.

---

<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 27, 2024, 2:07am UTC](https://discuss.elastic.co/t/increase-number-of-shards-for-an-existing-data-stream/352045/2 "2024-02-27T02:07:23Z")

</div>

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