TRACESPLIT(1)
π TRACESPLIT(1) π
okay so bestie, welcome to the tracesplit manual page, section 1 (User Commands) β¨ this is literally the tool that takes your big giant trace and goes snip snip snip into a bunch of lil baby tracefiles π
β¨ NAME β¨
tracesplit β split traces π¦
πΈ SYNOPSIS πΈ
tracesplit [ -f bpf | --filter=bpf] [ -c count | --count=count] [ -b
bytes | --bytes=bytes] [ -i seconds | --seconds=seconds] [ -s unixtime |
--starttime=unixtime] [ -e unixtime | --endtime=unixtime] [ -m maxfiles
| --maxfiles=maxfiles] [ -S snaplen | --snaplen=snaplen] [ -z level |
--compress-level=level] [ -Z method | --compress-type=method] inputuri
[inputuri ...] outputuri
like yes there are a LOT of flags, don't panic, we're gonna go through every single one together π
π DESCRIPTION π
tracesplit splits the given input traces into multiple tracefiles π that's it, that's the whole vibe. one input, many outputs, iconic.
-f bpf,--filter=bpfβ output only packets that match tcpdump style bpf filter π no cap, if it doesn't match, it doesn't make the cut.-c count,--count=countβ output count packets per output file. The output file will be named after the basename given in the outputuri with the packet number of the first packet in this file π¦ so like, first packet's number is literally in the filename, iykyk.-b bytes,--bytes=bytesβ output bytes bytes per file π chunk it by size, periodt.-i seconds,--seconds=secondsβ start a new tracefile after "seconds" seconds β° time-based splitting, so organized of it.-s unixtime,--starttime=unixtimeβ don't output any packets before unixtime π early packets stay home.-e unixtime,--endtime=unixtimeβ don't output any packets after unixtime π« late packets also stay home.-m maxfiles,--maxfiles=maxfilesβ do not create more than "maxfiles" trace files π bestie there is a LIMIT, respect it.-S snaplen,--snaplen=snaplenβ Truncate packets to "snaplen" bytes long. The default is collect the entire packet βοΈ so if you don't say anything, you're getting the WHOLE packet, no trimming.-z level,--compress-level=levelβ Compress the data using the specified compression level, ranging from 0 to 9. Higher compression levels tend to result in better compression but require more processing power to compress πͺ bigger number = smaller file but your CPU is gonna be sweating.-Z compression-method,--compress-type=methodβ Compress the data using the specified compression algorithm. Accepted methods are"gzip","bzip2","lzo","xz"or"none". Default value is none unless a compression level is specified, in which case gzip will be used ποΈ so if you set-zbut not-Z, gzip just volunteers itself, main character energy fr fr.
π EXAMPLES π
create a 1MB erf trace of port 80 traffic.
tracesplit -z 1 -Z gzip -f 'port 80' -b $[ 1024 * 1024 ]
erf:/traces/bigtrace.gz erf:/traces/port80.gz
look at her go π filtered, size-limited, compressed, and cute. the $[ 1024 * 1024 ] is doing the math for you so you don't have to, we love a self-sufficient queen π§
π LINKS π
More details about tracesplit (and libtrace) can be found at http://www.wand.net.nz/trac/libtrace/wiki/UserDocumentation
(the lore goes deep, bestie, go read it π«Ά)
π¦ SEE ALSO π¦
libtrace(3), tracemerge(1), tracefilter(1), traceconvert(1), tracesplit_dir(1), tracereport(1), tracertstats(1), tracestats(1), tracepktdump(1), traceanon(1), tracesummary(1), tracereplay(1), tracediff(1), traceends(1), tracetopends(1)
the whole libtrace friend group is here, they're all slaying in their own way π
π AUTHORS π
Perry Lorier <perry@cs.waikato.ac.nz> β thank you for your service king π
and that's the whole page bestie!! no notes, 10/10, go split some traces β¨
tracesplit (libtrace) β January 2011 π mwah, that's the version and date, bye now!! ππΈπ¦
π¦ 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