Skip to content

Feature/info request datastream migration #1926

@ryemelia

Description

@ryemelia

Hi,
is there any way how to migrate datastreams via RfsMigrateDocuments?

as i see now

  1. i can not target datastream name(logs-datasetv1-events) via --index-allowlist as backing index will be skipped and nothing happen
.ds-logs-datasetv1-events-000001 will be reindexed, it was not included in the allowlist: [logs-datasetv1-events]
  1. i can not use backing index restore as opensearch doesn't have "add index as backing to DS" API so i will not be able to attach to to datastream
from .ds-logs-datasetv1-events-000001  to .ds-logs-datasetv1-events-000001 
  1. i can not restore to existing index
2025-10-29 15:26:04,024 WARN o.o.m.b.c.OpenSearchClient [reactor-http-epoll-3] After bulk request attempt 1 on index '.ds-logs-datasetv1-events-000001', 0 more documents have succeeded, 9609 remain. The error response message was: {"took":24,"errors":true,"items":[{"index":{"_index":".ds-logs-datasetv1-events-000001","_id":"5b9356ef-6873-4ed8-8e1a-e3cbaf6bd127","status":400,"error":{"type":"illegal_argument_exception","reason":"index request with op_type=index and no if_primary_term and if_seq_no set targeting backing indices is disallowed, target corresponding data stream [logs-datasetv1-events] instead"}}},{"index":{"_index":".ds-logs-datasetv1-events-000001","_id":"24ccfe8e-4542-4a5c-8eec-8ecf2d438805","status":400,"error":{"type":"illegal_argument_exception","reason":"index request with op_type=index and no if_primary_term and if_seq_no set targeting backing indices is disallowed, target corresponding data stream [logs-datasetv1-events] instea... [truncated] ...1-events] instead"}}},{"index":{"_index":".ds-logs-datasetv1-events-000001","_id":"d1c444f1-2abe-4f6d-9e19-ae26da769ff1","status":400,"error":{"type":"illegal_argument_exception","reason":"index request with op_type=index and no if_primary_term and if_seq_no set targeting backing indices is disallowed, target corresponding data stream [logs-datasetv1-events] instead"}}},{"index":{"_index":".ds-logs-datasetv1-events-000001","_id":"dd245c91-d225-4c8a-a87a-74a42706750c","status":400,"error":{"type":"illegal_argument_exception","reason":"index request with op_type=index and no if_primary_term and if_seq_no set targeting backing indices is disallowed, target corresponding data stream [logs-datasetv1-events] instead"}}}]}
  1. i can not use different output for this command to migrate from .ds-logs-datasetv1-events-000001 index to DS name(logs-datasetv1-events) instead

migrating from elasticsearch 7.17.28 to opensearch 2.19

Could someone help here please

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions