New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Data Prepper can not write to Opensearch Datastream #2037
Comments
Hi @rospeelman The reason you've encountered that error is because the OpenSearch Sink currently does not have configuration options to specifically support data streams. I would encourage you to update this issue as a feature request or enhancement. |
@rospeelman , have you tried manually creating the data stream prior to running data prepper? The error you provided appears to be on creation of the data stream. And as @sshivanii has pointed out, the current plugin does not support data stream configuration option. Ingesting of documents should be standard across indices and creating a stream prior may be a work-around until we have support for creating streams through the plugin. |
I tested it again, creating the datastream bevor starting data prepper gets me the same result, as soon as i try to ingest data I get the same error. |
@rospeelman , Have you tried disabling the As @cmanning09 pointed out, we do not currently support Data Streams. However, Data Prepper can ingest data into OpenSearch without attempting to manage the indices. I believe the following two steps may work:
There are additional details in this issue: 1051 Configuration reference: https://github.com/opensearch-project/data-prepper/tree/main/data-prepper-plugins/opensearch#configuration |
I'm having the same issue right now and I can confirm that disabling index management doesn't work.
We would like to use datastreams since we're going to ingest logs from different sources (java on ECS Fargate, python/node on AWS Lambda's, plain log files through Fluentbit) and we've decided on using OTLP as protocol for all those application. //edit: small update after I found this ticket: #854 . Turns out that index names are formatted (would be nice if it were documented), so this actually works //edit2: we're a couple of months later and it appears that using |
The issue here is not related to creating a data stream - it is the action performed when sending requests to OpenSearch (it is set to index and cannot be changed to create). To solve this, Data Prepper should implement an action attribute on the OpenSearch sink, similar to what LogStash has done here - https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-action |
@cameronattard Exactly this. As soon as I saw this error message, I immediately went looking at the options for the OpenSearch sink expecting to find an option to configure the |
Hi there, If i understand correctly, the "opensearch exporter" from otel currently only supports traces, but not logs and metrics. @dlvenable |
Hi @dlvenable @cmanning09 |
Would also like to see DataPrepper support for data streams. With many tools (such as AWS OpenSearch Ingestion) moving to DataPrepper based ingestion stacks, and Data Stream based analytics stacks (e.g. OpenSearch Integrations), it would be great to see support for data streams in DataPrepper. |
I was able to write data to DataStream by setting action to create and index_type to custom. DataStream I created manually.
|
Describe the bug
Can not send logs to Opensearch Data stream
To Reproduce
Steps to reproduce the behavior:
Expected behavior
write logs to Data stream
Environment (please complete the following information):
Comment
I didn't find an option to set the op_typ.
The text was updated successfully, but these errors were encountered: