# Loading a pcap file

**URL:** <https://discuss.elastic.co/t/loading-a-pcap-file/71524>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [January 13, 2017, 1:26pm UTC](https://discuss.elastic.co/t/loading-a-pcap-file/71524 "2017-01-13T13:26:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PinXo](https://avatars.discourse-cdn.com/v4/letter/p/a8b319/32.png) [@PinXo](https://discuss.elastic.co/u/PinXo)\
**Post date:** [January 13, 2017, 1:26pm UTC](https://discuss.elastic.co/t/loading-a-pcap-file/71524/1 "2017-01-13T13:26:01Z")

</div>

I'm running packetbeat with my own pcap file.  
I have noticed that when I run it without options (just -I file.pcap) it works ok, with the corresponding delays.  
When I use -t flag (TopSpeed), i don't see any packet in the console output. However, if besides that, I use the flag -O and i press Enter key until the end of file, the console shows the read packets correctly.

Is it a bug in the output system?  
It happens in packetbeat 1.3.1 and 5.1.2

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [January 13, 2017, 5:09pm UTC](https://discuss.elastic.co/t/loading-a-pcap-file/71524/2 "2017-01-13T17:09:31Z")

</div>

Try using the `-waitstop <seconds>` option to allow Packetbeat to process the data before stopping. For example:

`./packetbeat -e -v -waitstop 10 -t -I dns-tunnel-iodine-timeshifted.pcap`

Example from [https://github.com/elastic/examples/tree/master/packetbeat\_dns\_tunnel\_detection](https://github.com/elastic/examples/tree/master/packetbeat_dns_tunnel_detection)

---

<div class="post-metadata">

**Author:** ![PinXo](https://avatars.discourse-cdn.com/v4/letter/p/a8b319/32.png) [@PinXo](https://discuss.elastic.co/u/PinXo)\
**Post date:** [January 16, 2017, 10:03am UTC](https://discuss.elastic.co/t/loading-a-pcap-file/71524/3 "2017-01-16T10:03:56Z")

</div>

Thank you! That's the solution.  
I supose the "Top Speed" option speeds up the main thread too much for the output 🙂

---

<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:** [February 13, 2017, 10:04am UTC](https://discuss.elastic.co/t/loading-a-pcap-file/71524/4 "2017-02-13T10:04:01Z")

</div>

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