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

Hi all,

I would like to simultaneously filter and merge several pcap files. Combination of tshark and mergecap is a costly operation in my context (the combination implies that one have to visit each packets twice: first for filtering, second for mering). But I am looking for a tool which does that in one visit per packet (check if packet match with filter, then merge). After googling, I found someone did it with tracesplit but with no more explanation about the syntax...

asked 19 Feb '15, 08:50

ikuzar's gravatar image

accept rate: 0%

tracesplit does the opposite or merging ("tracesplit splits one trace into multiple tracefiles").

To give any meaningful answer, please add more details.

  • What do you mean exactly by "is a costly operation in my context"?
  • What kind of filters do you need? Capture filters or display filters?
  • How do you want to merge the files? Just append or in a chronological correct order?


permanent link

answered 23 Feb '15, 09:44

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
accept rate: 15%

also, merging is a real fast process, especially if concatenating files, so filtering with tshark and then merging the filtered results is usually really quick.

(23 Feb '15, 12:11) Jasper ♦♦

many process and threads are running in my program. I just want to optimize the execution time of filtering/merging/compressing. I need capture filters and I just want to merge by appending packets.

(30 Mar '15, 02:49) ikuzar

can you please add an example of what you are trying to do?

(30 Mar '15, 04:08) Kurt Knochner ♦
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: 19 Feb '15, 08:50

question was seen: 3,137 times

last updated: 30 Mar '15, 04:08

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