paperlined.org
apps > wireshark
document updated 6 days ago, on Feb 14, 2025

Wireshark display filters

Filters that I sometimes use.

general

DB2

(filter reference for 'drda')

To get just a list of the SQL queries included in a .pcap file, run this at the command line:

tshark -2 -R 'drda.sqlstatement' -Tfields -e 'drda.sqlstatement' -r MY_FILE.pcap |  perl -ple 's/^WITH HOLD ,//; s/[\r\n]*$/;\r\n\r\n/'

Incidental information: If you want to highlight just the "FROM" section of each SQL query, use this search within Vim:   /\vfrom.*( where| order)@=