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

I am trying to launch wireshark from the cli with the following options...

wireshark -k -i eth2 -a filesize:1000000 -f <capture filter=""> The issue I have is that I want to use a pre-defined wireshark filter... when I run the above with the actual filter in the cli cmd it works, when I use a pre-defined one it fails..

Working example:

wireshark -k -i eth2 -a filesize:1000000 -f "host" Failure example (the one I am trying to use):

wireshark -k -i eth2 -a filesize:1000000 -f pre-defined-capture1 Where pre-defined-capture1 filter does show up under "Capture -> Options -> Capture Filter" list...

The error i get is that the filter is not valid, I would like to specify the filter I saved in the capture filters list if thats possible...

Any ideas?

asked 13 Dec '12, 09:22

gates2010's gravatar image

accept rate: 0%

Unfortunately, what you are asking for is not yet implemented. The option '-f' accepts only filters in the libpcap syntax. Please file and enhancement bug at


permanent link

answered 14 Dec '12, 07:42

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
accept rate: 15%

filed a bug.. thank you

(17 Dec '12, 16:18) gates2010
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: 13 Dec '12, 09:22

question was seen: 2,219 times

last updated: 18 Dec '12, 00:23

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