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

I want to use a command line filter to sort out the traffic by protocol. For example, how can I show other traffic aside from http? Also how can I then get a count of how many TCP sessions exist my packet capture?

asked 15 Oct '13, 13:45

jayhawk100's gravatar image

jayhawk100
11112
accept rate: 0%


There are several ways of doing this. A simple display filter like "not tcp.port==80" (or whatever port http is using) will do it.

Also, Statistics, Conversations (TCP Tab) will show you how many streams are in play.

permanent link

answered 15 Oct '13, 14:19

hansangb's gravatar image

hansangb
7912619
accept rate: 12%

Thanks, I figured I could use a filter syntax like "not http",etc. For the second question, how would I get those conversation statistics from the command line? I don't have the gui on my older linux OS.

(15 Oct '13, 15:00) jayhawk100
1

tshark -z conv,tcp -q -r somefilehere.pcap

-z says give me the stats for tcp conversation -q says give me the summary and not a per packet info.

(15 Oct '13, 17:26) hansangb
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:

×124

question asked: 15 Oct '13, 13:45

question was seen: 2,511 times

last updated: 15 Oct '13, 17:26

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