# Getting PacketBeat Raw TCP Payloads

**URL:** <https://discuss.elastic.co/t/getting-packetbeat-raw-tcp-payloads/206926>\
**Category:** Logstash\
**Tags:** beats-module\
**Created:** [November 7, 2019, 9:01am UTC](https://discuss.elastic.co/t/getting-packetbeat-raw-tcp-payloads/206926 "2019-11-07T09:01:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alpayk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alpayk/32/48223_2.png) [@alpayk](https://discuss.elastic.co/u/alpayk)\
**Post date:** [November 7, 2019, 9:01am UTC](https://discuss.elastic.co/t/getting-packetbeat-raw-tcp-payloads/206926/1 "2019-11-07T09:01:42Z")

</div>

Is it possible to extract and send the network traffic to logstash as a byte array using PacketBeat? I want to post-process the raw network traffic bytes after sending them to logstash because of the heavy network load.

The protocol I am mentioning is not something well-known, it is a binary protocol flowing over network and it is request-response based. Each request response is inside their own TCP session, so "follow tcp stream" in wireshark is able to show me the request-response of a specific session.

1- session starts  
2- request is sent  
3- response is sent  
4- session ends

Is it possible to just get binary data from a TCP session using PacketBeat? I just need it to extract binary data from each tcp session passing through a network interface.

Thank you

---

<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 5, 2019, 9:01am UTC](https://discuss.elastic.co/t/getting-packetbeat-raw-tcp-payloads/206926/2 "2019-12-05T09:01:42Z")

</div>

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