Skip to content

Provide a configuration for OpenSearch Data Streams #6828

@dlvenable

Description

@dlvenable

Is your feature request related to a problem? Please describe.

In #6249, we added support for the OpenSearch sink to automatically detect if an index is a data stream.

In some cases, users are seeing inconsistencies. This could be because the permissions to detect are not present, or if the index is not always a data stream (perhaps on other clusters)

Describe the solution you'd like

Provide a new sink configuration to control data streams named data_stream.

The possible values are: automatic (the default), always, never.

opensearch:
    index: "my-index"
    data_stream: "automatic"  # or "always" / "never"

The enum would look something like this:

public enum DataStreamStatus {
      AUTOMATIC("automatic"),
      ALWAYS("always"),
      NEVER("never");
  }

Describe alternatives you've considered (Optional)

N/A

Additional context

Issues: #2037, #2038
PR: #6249

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

Status

Unplanned

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions