Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Has anyone written a utility that simultaneously filters and merges many pcap-format packet capture files? tshark and tcpdump filter but don't merge, mergecap merges but doesn't filter. I am trying to filter down 64GB of captures (compressed!) into one much smaller file, and it would be nice if I didn't need another several GB of scratch space and two steps, both of them slow.

The utility must run on Linux and ideally would already be packaged in Debian. Ability to read gzipped trace files is highly desirable. Being fast is also highly desirable (tshark takes ten to thirty minutes to process one of the input files; there are 120 of them). I can live with being limited to libpcap's filter syntax.

share|improve this question

migrated from superuser.com Dec 16 '11 at 3:45

This question came from our site for computer enthusiasts and power users.

1 Answer 1

Digging through the reverse dependencies of libpcap in Debian found me tracesplit (one of the command line utilities bundled with libtrace) which does my simultaneous filter and merge, and can process the full data set in 20 minutes, which is probably as good as I'm getting. It's a little weird that you use the split tool to merge with filtration, but whatever.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.