# Is raw data gathering possible with packetbeat?

**URL:** <https://discuss.elastic.co/t/is-raw-data-gathering-possible-with-packetbeat/123935>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [March 14, 2018, 3:33pm UTC](https://discuss.elastic.co/t/is-raw-data-gathering-possible-with-packetbeat/123935 "2018-03-14T15:33:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tancfire](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@tancfire](https://discuss.elastic.co/u/tancfire)\
**Post date:** [March 14, 2018, 3:33pm UTC](https://discuss.elastic.co/t/is-raw-data-gathering-possible-with-packetbeat/123935/1 "2018-03-14T15:33:40Z")

</div>

Hello,

Packetbeat is very useful to sniff and send data to logstash, so i started to use it. But now, i have a problem:

I want to get the raw data (in heaxdecimal, like in wireshark) when packetbeat cannot recognize the packet's protocol.

Is it possible with packetbeat ? Must i use an other software (like wireshark) ?

Here my current configuration file (packetbeat.yml):

```
packetbeat.interfaces.device: any

packetbeat.flows:
  timeout: 30s
  period: 10s

packetbeat.protocols.dns:
  ports: [53]
  include_authorities: true
  include_additionals: true

packetbeat.protocols.http:
  ports: [80, 443, 8080, 8081]
  send_response: true
  include_body_for: ["text/html"]
  
packetbeat.protocols.icmp:
  send_response: true
  send_request: true
  enabled: true

output.logstash:
  hosts: ['localhost:5000']
```

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [March 15, 2018, 2:04pm UTC](https://discuss.elastic.co/t/is-raw-data-gathering-possible-with-packetbeat/123935/2 "2018-03-15T14:04:57Z")

</div>

Packetbeat doesn't support dumping of raw packets.

What do you mean by packetbeat not recognizing the packet's protocol?

- When you have a protocol bound to a port (i.e. http to port 80 in your config) but a packet arrives in that port that it cannot recognize?
- When packets arrive on different ports to which a parser has not been assigned?

In both cases it is not supported right now, you can create an [Enhancement Request](https://github.com/elastic/beats/issues/new) in the beats repository.

---

<div class="post-metadata">

**Author:** ![tancfire](https://avatars.discourse-cdn.com/v4/letter/t/3da27b/32.png) [@tancfire](https://discuss.elastic.co/u/tancfire)\
**Post date:** [March 15, 2018, 2:32pm UTC](https://discuss.elastic.co/t/is-raw-data-gathering-possible-with-packetbeat/123935/3 "2018-03-15T14:32:34Z")

</div>

I meant the first case.

Thanks 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:** [April 12, 2018, 2:33pm UTC](https://discuss.elastic.co/t/is-raw-data-gathering-possible-with-packetbeat/123935/4 "2018-04-12T14:33:10Z")

</div>

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