# Custom TCP server to receive incoming binary data to Elastic?

**URL:** <https://discuss.elastic.co/t/custom-tcp-server-to-receive-incoming-binary-data-to-elastic/320322>\
**Category:** Elastic Stack\
**Created:** [December 2, 2022, 5:31am UTC](https://discuss.elastic.co/t/custom-tcp-server-to-receive-incoming-binary-data-to-elastic/320322 "2022-12-02T05:31:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumaresanr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kumaresanr/32/114138_2.png) [@kumaresanr](https://discuss.elastic.co/u/kumaresanr)\
**Post date:** [December 2, 2022, 5:31am UTC](https://discuss.elastic.co/t/custom-tcp-server-to-receive-incoming-binary-data-to-elastic/320322/1 "2022-12-02T05:31:22Z")

</div>

I have the following requirement.

I run a traffic proxy and the traffic proxy bundle some stats into a custom binary format and can send them to an endpoint via TCP socket. I cannot install a filebeat or such sort in this proxy. So, I want to create a TCP server listener in the Elastic ecosystem to listen to these records sent via TCP and convert them to some JSON before I push them to Logstash.

Is this something possible today?

Thanks  
Kumar

---

<div class="post-metadata">

**Author:** ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)\
**Post date:** [December 2, 2022, 5:47am UTC](https://discuss.elastic.co/t/custom-tcp-server-to-receive-incoming-binary-data-to-elastic/320322/2 "2022-12-02T05:47:58Z")

</div>

Welcome to the forum @kumaresanr!

There are various options, from creating a Logstash input plugin to writing a standalone server that transforms the custom binary protocol to JSON. I'll move this to the Elastic Stack category - this doesn't really have anything to do with APM. Hopefully someone watching that category has some more specific guidance.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 23, 2022, 1:48am UTC](https://discuss.elastic.co/t/custom-tcp-server-to-receive-incoming-binary-data-to-elastic/320322/3 "2022-12-23T01:48:03Z")

</div>

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