tshark_query
Run tshark queries on PCAP files to filter network traffic and extract specific packet fields, enabling targeted analysis of captured data.
Instructions
Run an arbitrary tshark query on a PCAP file. pcap_path: path to PCAP file display_filter: Wireshark display filter e.g. 'http.request', 'tcp.port==21', 'smb', 'dns.qry.name', 'frame.number == 42' fields: comma-separated tshark fields to extract e.g. 'ip.src,ip.dst,tcp.port,http.request.uri' max_lines: max output lines (default 200)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | ||
| max_lines | No | ||
| pcap_path | Yes | ||
| display_filter | No |