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

Hi,

I'd like to logs all packets that containg a specific pattern (a string in my case). I want to log only thoses packets 24h/7.

Right now, I can log all packets that comes to a specified port and apply a filter, but this generate tons of data on the disk, generating too much data to be usefull.

So I'd like to be able to log using a filter (not logging everything that comes in and then applying a filter).

Is that possible with wireshark?

Thx!

asked 11 Sep '14, 07:55

Snalibe's gravatar image

Snalibe
11112
accept rate: 0%


Please use this String-Matching Capture Filter Generator:

https://www.wireshark.org/tools/string-cf.html

As an alternative you could use ngrep.

permanent link

answered 13 Sep '14, 09:27

Roland's gravatar image

Roland
7642415
accept rate: 13%

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:

×549
×184

question asked: 11 Sep '14, 07:55

question was seen: 1,563 times

last updated: 13 Sep '14, 09:27

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