Extract fields as columns

Print chosen fields as a table with a header. Easy to pipe into awk or CSV tools

tshark -r cap.pcap -Y http.request -T fields -e ip.src -e http.host -e http.request.uri -E header=y

tool
tshark4 commands
tags
tsharkobservabilitydebugnetwork

More tshark commands

  • tshark -r cap.pcap -q -z follow,tcp,ascii,0

    Rebuild stream 0 as readable ASCII. On servers, tshark is easier to use than Wireshark

  • tshark -r cap.pcap -q -z conv,tcp

    Rank TCP conversations by bytes and packets to find the top talkers in a capture

  • tshark -i any -q -z io,stat,1,'COUNT(tcp.analysis.retransmission)tcp.analysis.retransmission'

    Retransmissions per second on live traffic. Helps match packet loss with app latency spikes

all 4 tshark commands