TRACESTATS(1)
π¦ TRACESTATS(1) β the manual page, but make it make sense π
okay bestie, welcome to tracestats(1), a User Command, and honestly? she's that girl. β¨
πΈ NAME πΈ
tracestats β perform simple analysis on a trace π
β¨ SYNOPSIS β¨
tracestats [ -f | --filter bpf ]... inputuri...
like. that's it. that's the whole vibe. π
π«Ά DESCRPTION π«Ά
(yes the heading is spelled like that in the original, no I will not be fixing it, it's iconic and it's canon)
so here's the tea: tracestats reads one or more traces and outputs summaries for each trace of how many packets/bytes match each bpf filter, plus the totals. like a lil report card for your packets. πβ¨
but listen β if you don't wanna do that for the entire trace, and instead you wanna do it for portions of it? then you go use tracertstats(1) instead. different tool, different job, no cap. π¦
π OPTIONS π
-f bpf-filter,--filter bpf-filterβ add another bpf filter. yes you can stack these. keep stacking. more filters, more power. π
π₯ EXAMPLES π₯
here's the whole slay in action, copied exactly because I do not play with command syntax:
tracestats --filter 'host sundown' \
--filter 'port http' \
--filter 'port ftp or ftp-data' \
--filter 'port smtp' \
--filter 'tcp[tcpflags] & tcp-syn!=0' \
--filter 'not ip' \
--filter 'ether[0] & 1 == 1' \
--filter 'icmp[icmptype] == icmp-unreach' \
erf:/traces/trace1.gz \
erf:/traces/trace2.gz \
eight filters, two trace files, one absolutely unbothered queen. notice the erf: prefix on the input URIs β that's the format, keep it. π
π LINKS π
want more details about tracestats (and libtrace, her whole extended universe)? it's all at:
http://www.wand.net.nz/trac/libtrace/wiki/UserDocumentation
go read it, it's giving documentation. πβ¨
π SEE ALSO π
the whole friend group, fr fr:
libtrace(3)tracemerge(1)tracefilter(1)traceconvert(1)tracesplit(1)tracesplit_dir(1)tracereport(1)tracertstats(1)tracepktdump(1)traceanon(1)tracesummary(1)tracereplay(1)tracediff(1)traceends(1)tracetopends(1)
π AUTHORS π
Perry Lorier <perry@cs.waikato.ac.nz> β the icon, the legend, the moment. π«Ά
and that's the whole page bestie. go forth and count some packets. π β¨
this has been tracestats (libtrace), dated <b>October 2005</b> β yes she's vintage, yes she still ate. mwah. ππ
π¦ where this page comes from
- debian bookworm: libtrace-tools 3.0.22-0.1
- debian trixie: libtrace-tools 3.0.22-0.2
- ubuntu jammy: libtrace-tools 3.0.21-1ubuntu5
- ubuntu noble: libtrace-tools 3.0.22-0.2build1
- ubuntu questing: libtrace-tools 3.0.22-0.2build1
- ubuntu resolute: libtrace-tools 3.0.22-0.2build2
- ubuntu stonking: libtrace-tools 3.0.22-0.2build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms