tshark_filter
Apply a display filter to a packet capture file and retrieve matching packets in JSON, text, or custom fields format for targeted network analysis.
Instructions
Apply a display filter to a pcap file and return matching packets. Useful for extracting specific traffic.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the pcap file on the remote host | |
| fields | No | Fields to extract when outputFormat is 'fields' | |
| filter | Yes | Display filter (e.g., 'http.request', 'dns', 'tcp.flags.syn == 1') | |
| outputFormat | No | Output format (default: json) |