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

Filtering Initial Capture File

0

Hi, I'm wanting to filter the initial capture file using the following expression "(expert.message contains "GET /Pages/Home.aspx") && (ip.dst == x.x.x.x)". Unfortunately when I come to setup the capture file and apply the filter it won't accept the expression.

It would be much appreicated if you could point me in the right direction.

Thanks!!

asked 30 Jul '12, 11:04

Testsubjec's gravatar image

Testsubjec
1111
accept rate: 0%

sounds like a version problem. It works with Wireshark 1.8.1.

(30 Jul '12, 12:27) Kurt Knochner ♦

2 Answers:

0

Besides that your filter works with Wireshark 1.8.1, I suggest to use the following display filter, which should work with pretty much every Wireshark version (at least with the last few releases).

ip.dst == 1.2.3.4 and http.request.method == "GET" and http.request.uri contains "/Pages/Home.aspx"

Regards
Kurt

answered 30 Jul '12, 12:49

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

0

Your expression worked fine for me in Wireshark 1.6.9 (substituting a real address in place of "x.x.x.x" of course). Are you trying to apply a capture filter or a display filter? Your expression is a display filter. It will not work as a capture filter; display filters and capture filters use different syntax.

There is no capture filter equivalent to "expert.message contains". You will have to capture the data first, and then apply that as a display filter.

answered 30 Jul '12, 13:02

Jim%20Aragon's gravatar image

Jim Aragon
7.2k733118
accept rate: 24%