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

There're multiple pcap files, I want to use tshark to dissect them at one time, how to config the input parameters?

asked 13 Jan '14, 21:46

metamatrix's gravatar image

metamatrix
56161619
accept rate: 100%


I don't see how with tshark alone this can be achieved but you could run a mergecap before and then process the resulting file.

mergecap -w merged.pcapng  trace* 
tshark -r merged.pcapng "tcp.analysis.flags"
permanent link

answered 14 Jan '14, 01:00

mrEEde's gravatar image

mrEEde
3.9k152270
accept rate: 20%

Thank you, mrEEde. I think mergecap is what I need, I just want a single output file with multiple input.

(14 Jan '14, 18:34) metamatrix

see the answers to the following questions for a scripted solution

Linux (and other Unix like systems)

http://ask.wireshark.org/questions/28542/converting-multiple-pcap-files-to-csv

Windows

http://ask.wireshark.org/questions/12799/how-to-convert-multiple-pcap-files-to-csv

Regards
Kurt

permanent link

answered 14 Jan '14, 06:56

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 14 Jan '14, 07:07

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×832
×41
×26
×13

question asked: 13 Jan '14, 21:46

question was seen: 7,820 times

last updated: 14 Jan '14, 18:34

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