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

Limit / tailor tshark conversations output

0

Hi I have to analyze a large number of pcap files and made a little script that outputs the conversations for tcp and udp.

-q -z conv,tcp -z conv,udp

Thus far everything works fine. The problem is that I only need the top 10-20 entries of total bytes and don't need the last ~60000 entries.

Is there an output filter that can limit the entries to top 10? Or maybe a way to only print the entry if the total traffic (or frames) is greater than a specified value?

Thanks in advance

asked 09 Feb '17, 04:38

laminatorius's gravatar image

laminatorius
6224
accept rate: 0%


One Answer:

0

There is no filtering on statistics output, That is left to external scripts.

answered 09 Feb '17, 07:45

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%