# Configuring data prepper source to receive events over HTTP/HTTPS

**URL:** <https://forum.opensearch.org/t/configuring-data-prepper-source-to-receive-events-over-http-https/18109>\
**Category:** Data Prepper\
**Tags:** configure\
**Created:** [February 27, 2024, 5:40pm UTC](https://forum.opensearch.org/t/configuring-data-prepper-source-to-receive-events-over-http-https/18109 "2024-02-27T17:40:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vmm-afonso](https://avatars.discourse-cdn.com/v4/letter/v/9de053/32.png) [@vmm-afonso](https://forum.opensearch.org/u/vmm-afonso)\
**Post date:** [February 27, 2024, 5:40pm UTC](https://forum.opensearch.org/t/configuring-data-prepper-source-to-receive-events-over-http-https/18109/1 "2024-02-27T17:40:34Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
Opensearch v2.12.0  
Data prepper v.2.6.2

**Describe the issue** :  
I’m trying to figure out how to configure data prepper on a kubernetes cluster to receive OTEL events over HTTP/HTTPS.

For this use case, I have a data prepper instance running inside a gke cluster which is supposed to sink events to an opensearch cluster running inside this same cluster. This source is openTelemetry running on a different GCP project.

After reading some documentation ([https://opensearch.org/docs/latest/data-prepper/#source](https://opensearch.org/docs/latest/data-prepper/#source)), I’m assuming that I can somehow expose dataprepper to receive these events from openTelemetry.

I tried following this tutorial ([Demystify OpenTelemetry, with OpenSearch as a single plane of glass. | by Erik Åström | Medium](https://medium.com/@erikstrm_11611/demystify-opentelemetry-with-opensearch-as-a-single-plane-of-glass-919f884eb568)) but after deploying data-prepper with a service.yaml similar to the one appended in the doc, I noticed data-prepper wasn’t listening on every port I specified. It was only listening on 4900 and 21892 which I think were for API and Logs  
respectively.

I’m not sure where to send trace and metric events.

**Configuration** :  
I was hoping someone would share with me an example configuration for this use case or a similar one.

ty,

---

<div class="post-metadata">

**Author:** ![genomeprjct](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/genomeprjct/32/7293_2.png) [@genomeprjct](https://forum.opensearch.org/u/genomeprjct)\
**Post date:** [April 1, 2024, 3:15pm UTC](https://forum.opensearch.org/t/configuring-data-prepper-source-to-receive-events-over-http-https/18109/2 "2024-04-01T15:15:49Z")

</div>

When you use the otel logs source, it by default listens on 21892 and by default has no path, so `/` is used. It’s a gRPC service.

[otel\_logs\_source - OpenSearch Documentation](https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/sources/otel-logs-source/) is the more complete link to follow to configure the otel logs source.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [May 31, 2024, 3:16pm UTC](https://forum.opensearch.org/t/configuring-data-prepper-source-to-receive-events-over-http-https/18109/3 "2024-05-31T15:16:47Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
