Course contentsShow
← Security
Lesson 376 of 3,0529. Network Security - Traffic AnalysisFree lesson

Display Filters and Packet Search Techniques

Create effective display filters using syntax, operators, and field names to isolate specific traffic patterns.

Display Filters and Packet Search Techniques

What you'll learn: How to use Wireshark's display filters to quickly isolate the exact network traffic you need from thousands of captured packets.


When analyzing network traffic with Wireshark, you'll often capture thousands or millions of packets. Display filters are your search tool—they let you show only packets that match specific criteria, hiding everything else from view without deleting it.

How Display Filters Work

Think of display filters like a restaurant menu filter: "Show me only vegetarian dishes under $15." Similarly, you might say "Show me only HTTP traffic from IP 192.168.1.5."

Display filters use field names, operators, and values:

  • Field names identify what you're filtering (e.g., ip.src for source IP, tcp.port for TCP port)
  • Operators define the relationship (== equals, != not equals, contains, matches)
  • Values specify what you're looking for (IP addresses, port numbers, protocol names)

Basic Filter Syntax Examples

ip.addr == 192.168.1.5

Shows packets to or from that IP address.

tcp.port == 443

Shows HTTPS traffic (port 443).

http

Shows only HTTP protocol packets.

Combining Filters

Use and, or, and not to create complex filters:

ip.src == 10.0.0.5 and tcp.port == 80

Shows HTTP traffic specifically from 10.0.0.5.

tcp.flags.syn == 1 and tcp.flags.ack == 0

Shows TCP SYN packets (connection attempts).

Quick Search Tips

  • Wireshark autocompletes field names as you type
  • Right-click any packet field and select "Apply as Filter" for instant filtering
  • Use Ctrl+F to search within displayed packets

Key Takeaway: Display filters use field names, operators, and values to isolate specific traffic patterns, transforming overwhelming packet captures into focused, analyzable data streams.