This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How do I merge about 50 pcap files into one pcap?

0

I used the Mergcap command and it does not seem to take *.pcap as the input for multiple files. Is that a Mergcap limitation?

asked 25 Nov '10, 12:24

jambomj's gravatar image

jambomj
16114
accept rate: 0%

edited 25 Nov '10, 16:49


4 Answers:

2

Does this thread help you? merging many files using mergecap

answered 25 Nov '10, 14:22

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

1

After I posted my question I found a post which uses a batch as follows:

In the folder were all your pcap files are create a batch file called combine.bat run the batch from the command line so you know if it is working or not.

The batch file:

combine.bat:

setlocal enabledelayedexpansion

set myfiles=

for %%f in (*.pcap) do set myfiles=!myfiles! %%f

Cmd /V:on /c "c:Program FilesWiresharkmergecap.exe" -w temp.pcap %myfiles%

answered 25 Nov '10, 14:45

jambomj's gravatar image

jambomj
16114
accept rate: 0%

edited 25 Nov '10, 14:47

That may not work in all cases if the number of files is very large. See bug 1118: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1118

(25 Feb '11, 19:34) cmaynard ♦♦

0

I think mergecap does not work with wildcards like *.pcap. You'll have to supply all filenames to it one by one, like this: "mergecap -w out.pcap infile1.pcap infile2.pcap infile3.pcap..." At least that's what I do when I have to merge multiple files, and I usually also use -a for concatenation.

answered 25 Nov '10, 14:30

Jasper's gravatar image

Jasper ♦♦
23.8k551284
accept rate: 18%

0

Pcapjoiner can do that for you...googe it

answered 06 Nov '11, 21:42

Ron33's gravatar image

Ron33
1
accept rate: 0%