ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-users: Re: [Wireshark-users] Is it possible to merge multiple capture files based on a

From: Hansang Bae <hbae@xxxxxxxxxx>
Date: Fri, 04 Apr 2008 22:17:27 -0400
ccie wrote:
All:
I have been searching around to no success....
I have wireshark capturing 'all' packets continuosly for 10000 files (buffer ring file) of 16MB each. Now I need to find a way to extract certain packets based on a display filter and output to another set of file. is it possible to do this on the command-line (Windows DOS prompt) with filename wild-card?

You can use tshark to parse out what you need.

tshark -r <infilename>  -R ip.addr==192.168.1.1  -w <outputfilename>

The -R will let you use any of the display filters. Couple the above with some FOR loop and you should be fine.


--

Thanks,
Hansang