# Getting PacketBeat Raw TCP Payloads 2

**URL:** <https://discuss.elastic.co/t/getting-packetbeat-raw-tcp-payloads-2/238198>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [June 23, 2020, 6:29am UTC](https://discuss.elastic.co/t/getting-packetbeat-raw-tcp-payloads-2/238198 "2020-06-23T06:29:42Z")\
**Posts on this page:** 3\
**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:** [June 23, 2020, 6:29am UTC](https://discuss.elastic.co/t/getting-packetbeat-raw-tcp-payloads-2/238198/1 "2020-06-23T06:29:43Z")

</div>

I am asking this question again because my first [attempt](https://discuss.elastic.co/t/getting-packetbeat-raw-tcp-payloads/206926) was left unanswered

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:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [June 23, 2020, 8:45am UTC](https://discuss.elastic.co/t/getting-packetbeat-raw-tcp-payloads-2/238198/2 "2020-06-23T08:45:29Z")

</div>

Did you check raw fields? [https://www.elastic.co/guide/en/beats/packetbeat/current/exported-fields-raw.html](https://www.elastic.co/guide/en/beats/packetbeat/current/exported-fields-raw.html)

I believe you can customize processing with custom processors.

---

<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:** [July 21, 2020, 10:45am UTC](https://discuss.elastic.co/t/getting-packetbeat-raw-tcp-payloads-2/238198/3 "2020-07-21T10:45:38Z")

</div>

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