This is our old Q&A Site. Please post any new questions and answers at

I have a very large pcapng file (about 21GB), and I want to analyze the file in wireshark. Should I split it into small files with editcap? Can editcap handle such a large file? If not, how to do?

asked 20 Feb '14, 17:31

metamatrix's gravatar image

accept rate: 100%

editcap should be able to handle the file and it think it's absolutely necessary to split or pre-filter the file, as there is no way to load a 21GB file into wireshark or tshark.

You can pre-filter the file with tcpdump (e.g. in Linux), by using capture filter, if you know what to look for

tcpdump -nr input.pcap -w output_x_y.pcap 'host x.x.x.x or host y.y.y.y'


permanent link

answered 20 Feb '14, 21:48

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
accept rate: 15%

Thank you,Kurt. Should I use editcap directly on Windows to split the file? What's the proper parameters if I want to split this file into 2GB files?

(20 Feb '14, 23:09) metamatrix

You can do it on any platform that editcap supports. Unfortunately you cannot split based on file size with editcap, but you can split based on time and/or number of frames, see the editcap man page. If you need the size feature, there are other tools. Just google for: 'pcap file split'

(21 Feb '14, 08:44) Kurt Knochner ♦

Please try splitcap, its a free tool that can be used for filtering very large PCAP files. its very fast and efficient. With a few operators you can split a large file into into its individual IP pair conversations of even further port pair's

permanent link

answered 23 Feb '14, 18:56

deepacket's gravatar image

accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 20 Feb '14, 17:31

question was seen: 6,291 times

last updated: 23 Feb '14, 18:56

p​o​w​e​r​e​d by O​S​Q​A