# Failed Initialization of Opensearch sink with data prepper

**URL:** <https://forum.opensearch.org/t/failed-initialization-of-opensearch-sink-with-data-prepper/16970>\
**Category:** OpenSearch\
**Created:** [December 6, 2023, 10:59am UTC](https://forum.opensearch.org/t/failed-initialization-of-opensearch-sink-with-data-prepper/16970 "2023-12-06T10:59:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![IQSHM](https://avatars.discourse-cdn.com/v4/letter/i/c6cbf5/32.png) [@IQSHM](https://forum.opensearch.org/u/IQSHM)\
**Post date:** [December 6, 2023, 10:59am UTC](https://forum.opensearch.org/t/failed-initialization-of-opensearch-sink-with-data-prepper/16970/1 "2023-12-06T10:59:27Z")

</div>

I have latest version image of data prepper on docker. upon running docker-compose file, the container is up and is in running form but when i check it’s logs it comes up with following error.

iqrashahid@iqra-jamal-dell-e7450:~/Documents/WORK/Data\_Prepper$ docker logs e2  
Reading pipelines and data-prepper configuration files from Data Prepper home directory.  
/usr/bin/java  
Found openjdk version of 17.0  
2023-12-06T10:15:55,553 [main] INFO org.opensearch.dataprepper.DataPrepperArgumentConfiguration - Command line args: /usr/share/data-prepper/pipelines,/usr/share/data-prepper/config/data-prepper-config.yaml  
2023-12-06T10:15:56,196 [main] INFO org.opensearch.dataprepper.parser.PipelinesDataflowModelParser - Reading pipeline configuration from pipelines.yaml  
2023-12-06T10:15:57,405 [main] INFO org.opensearch.dataprepper.plugins.kafka.extension.KafkaClusterConfigExtension - Applying Kafka Cluster Config Extension.  
2023-12-06T10:15:57,951 [main] INFO org.opensearch.dataprepper.parser.PipelineTransformer - Building pipeline [log-pipeline] from provided configuration  
2023-12-06T10:15:57,953 [main] INFO org.opensearch.dataprepper.parser.PipelineTransformer - Building [http] as source component for the pipeline [log-pipeline]  
2023-12-06T10:15:58,190 [main] WARN org.opensearch.dataprepper.plugins.source.loghttp.HTTPSource - Creating http source without authentication. This is not secure.  
2023-12-06T10:15:58,191 [main] WARN org.opensearch.dataprepper.plugins.source.loghttp.HTTPSource - In order to set up Http Basic authentication for the http source, go here: [https://github.com/opensearch-project/data-prepper/tree/main/data-prepper-plugins/http-source#authentication-configurations](https://github.com/opensearch-project/data-prepper/tree/main/data-prepper-plugins/http-source#authentication-configurations)  
2023-12-06T10:15:58,196 [main] INFO org.opensearch.dataprepper.parser.PipelineTransformer - Building buffer for the pipeline [log-pipeline]  
2023-12-06T10:15:58,206 [main] INFO org.opensearch.dataprepper.parser.PipelineTransformer - Building processors for the pipeline [log-pipeline]  
2023-12-06T10:15:58,289 [main] INFO org.opensearch.dataprepper.parser.PipelineTransformer - Building sinks for the pipeline [log-pipeline]  
2023-12-06T10:15:58,290 [main] INFO org.opensearch.dataprepper.parser.PipelineTransformer - Building [opensearch] as sink component  
2023-12-06T10:15:58,336 [main] INFO org.opensearch.dataprepper.parser.PipelineTransformer - Constructing MultiBufferDecorator with [0] secondary buffers for pipeline [log-pipeline]  
2023-12-06T10:15:58,571 [main] INFO org.opensearch.dataprepper.pipeline.Pipeline - Pipeline [log-pipeline] - Initiating pipeline execution  
2023-12-06T10:15:58,575 [log-pipeline-sink-worker-2-thread-1] INFO org.opensearch.dataprepper.pipeline.Pipeline - Pipeline [log-pipeline] - sink is not ready for execution, retrying  
2023-12-06T10:15:58,576 [log-pipeline-sink-worker-2-thread-1] INFO org.opensearch.dataprepper.plugins.sink.opensearch.OpenSearchSink - Initializing OpenSearch sink  
2023-12-06T10:15:58,587 [main] INFO org.opensearch.dataprepper.pipeline.server.HttpServerProvider - Creating Data Prepper server with TLS  
2023-12-06T10:15:58,609 [log-pipeline-sink-worker-2-thread-1] INFO org.opensearch.dataprepper.plugins.sink.opensearch.ConnectionConfiguration - Using the username provided in the config.  
2023-12-06T10:15:58,870 [main] INFO org.opensearch.dataprepper.pipeline.server.DataPrepperServer - Data Prepper server running at :4900  
2023-12-06T10:15:58,936 [log-pipeline-sink-worker-2-thread-1] INFO org.opensearch.dataprepper.plugins.sink.opensearch.ConnectionConfiguration - Using the trust all strategy  
2023-12-06T10:15:59,473 [log-pipeline-sink-worker-2-thread-1] WARN org.opensearch.dataprepper.plugins.sink.opensearch.OpenSearchSink - Failed to initialize OpenSearch sink, retrying: opensearch-node1: System error

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [December 8, 2023, 1:24am UTC](https://forum.opensearch.org/t/failed-initialization-of-opensearch-sink-with-data-prepper/16970/2 "2023-12-08T01:24:17Z")

</div>

@IQSHM Could you share the opensearch sink configuration?
