# Segment Replication with Data Streams

**URL:** <https://forum.opensearch.org/t/segment-replication-with-data-streams/17986>\
**Category:** OpenSearch\
**Tags:** troubleshoot, configure\
**Created:** [February 20, 2024, 3:13pm UTC](https://forum.opensearch.org/t/segment-replication-with-data-streams/17986 "2024-02-20T15:13:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgelszinnis](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mgelszinnis](https://forum.opensearch.org/u/mgelszinnis)\
**Post date:** [February 20, 2024, 3:13pm UTC](https://forum.opensearch.org/t/segment-replication-with-data-streams/17986/1 "2024-02-20T15:13:22Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
OpenSearch 2.11.1

**Describe the issue** :  
I have been trying to create Data Streams that use Segment Replication. I have set “index.replication.type”: “SEGMENT” in the advanced settings of my data stream template. But if I index a document an index with “index.replication.type”: “DOCUMENT” gets created.  
I have also tried setting

```auto
cluster.indices.replication.strategy: 'SEGMENT'

```

in the opensearch.yaml. This did also not work.  
Has anyone managed to get Segement Replication working with Data Streams?

---

<div class="post-metadata">

**Author:** ![mgelszinnis](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mgelszinnis](https://forum.opensearch.org/u/mgelszinnis)\
**Post date:** [February 21, 2024, 8:54am UTC](https://forum.opensearch.org/t/segment-replication-with-data-streams/17986/2 "2024-02-21T08:54:17Z")

</div>

I just tried it with version 2.12. Now it’s working.
