[5d022cd] | 1 | .TH TRACESPLIT "1" "October 2005" "tracesplit (libtrace)" "User Commands" |
---|
| 2 | .SH NAME |
---|
| 3 | tracesplit \- split traces |
---|
| 4 | .SH SYNOPSIS |
---|
[1369834] | 5 | .B tracesplit |
---|
[634089d] | 6 | [ \fB-f \fRbpf | \fB--filter=\fRbpf] |
---|
| 7 | [ \fB-c \fRcount | \fB--count=\fRcount] |
---|
| 8 | [ \fB-b \fRbytes | \fB--bytes=\fRbytes] |
---|
| 9 | [ \fB-i \fRseconds | \fB--seconds=\fRseconds] |
---|
| 10 | [ \fB-s \fRunixtime | \fB--starttime=\fRunixtime] |
---|
| 11 | [ \fB-e \fRunixtime | \fB--endtime=\fRunixtime] |
---|
| 12 | [ \fB-m \fRmaxfiles | \fB--maxfiles=\fRmaxfiles] |
---|
[0a65ed8] | 13 | [ \fB-S \fRsnaplen | \fB--snaplen=\fRsnaplen] |
---|
[ba91618] | 14 | [ \fB-z \fRlevel | \fB--compress-level=\fRlevel] |
---|
[bfe8535] | 15 | [ \fB-Z \fRmethod | \fB--compress-type=\fRmethod] |
---|
[9355915] | 16 | inputuri outputuri ... |
---|
[1369834] | 17 | .SH DESCRIPTION |
---|
[5d022cd] | 18 | tracesplit splits one trace into multiple tracefiles |
---|
| 19 | .TP |
---|
| 20 | \fB\-f\fR bpf filter |
---|
| 21 | output only packets that match tcpdump style bpf filter |
---|
| 22 | |
---|
| 23 | .TP |
---|
| 24 | \fB\-c\fR count |
---|
[e86124e] | 25 | output count packets per output file. The output file will be named after |
---|
| 26 | the basename given in the outputuri with the packet number of the first packet |
---|
| 27 | in this file. |
---|
[5d022cd] | 28 | |
---|
| 29 | .TP |
---|
| 30 | \fB\-b\fR bytes |
---|
| 31 | output bytes bytes per file |
---|
| 32 | |
---|
| 33 | .TP |
---|
| 34 | \fB\-i\fR seconds |
---|
| 35 | start a new tracefile after "seconds" seconds |
---|
| 36 | |
---|
| 37 | .TP |
---|
| 38 | \fB\-s\fR unixtime |
---|
| 39 | don't output any packets before unixtime |
---|
| 40 | |
---|
| 41 | .TP |
---|
| 42 | \fB\-e\fR unixtime |
---|
| 43 | don't output any packets after unixtime |
---|
| 44 | |
---|
[634089d] | 45 | .TP |
---|
| 46 | \fB\-m\fR maxfiles |
---|
| 47 | do not create more than "maxfiles" trace files |
---|
| 48 | |
---|
[0a65ed8] | 49 | .TP |
---|
| 50 | \fB\-S\fR snaplen |
---|
[0bfd4a0] | 51 | Truncate packets to "snaplen" bytes long. The default is collect the entire |
---|
| 52 | packet. |
---|
[0a65ed8] | 53 | |
---|
[bfe8535] | 54 | .TP |
---|
| 55 | \fB\-z\fR level |
---|
| 56 | Compress the data using the specified compression level, ranging from 0 to 9. |
---|
| 57 | Higher compression levels tend to result in better compression but require |
---|
| 58 | more processing power to compress. |
---|
| 59 | |
---|
| 60 | .TP |
---|
| 61 | \fB-Z\fR compression-method |
---|
| 62 | Compress the data using the specified compression algorithm. Accepted methods |
---|
| 63 | are "gzip", "bzip2", "lzo" or "none". Default value is none unless a |
---|
| 64 | compression level is specified, in which case gzip will be used. |
---|
| 65 | |
---|
[5d022cd] | 66 | .SH EXAMPLES |
---|
| 67 | create a 1MB erf trace of port 80 traffic. |
---|
| 68 | .nf |
---|
[bfe8535] | 69 | tracesplit \-z 1 -Z gzip \-f 'port 80' \-b $[ 1024 * 1024 ] |
---|
| 70 | erf:/traces/bigtrace.gz erf:/traces/port80.gz |
---|
[5d022cd] | 71 | .fi |
---|
| 72 | |
---|
[634089d] | 73 | .SH LINKS |
---|
| 74 | More details about tracesplit (and libtrace) can be found at |
---|
| 75 | http://www.wand.net.nz/trac/libtrace/wiki/UserDocumentation |
---|
| 76 | |
---|
[5d022cd] | 77 | .SH SEE ALSO |
---|
[67825b2] | 78 | libtrace(3), tracemerge(1), tracefilter(1), traceconvert(1), tracesplit_dir(1), |
---|
[1481ba7] | 79 | tracereport(1), tracertstats(1), tracestats(1), tracepktdump(1), traceanon(1), |
---|
| 80 | tracesummary(1), tracereplay(1), tracediff(1) |
---|
[67825b2] | 81 | |
---|
[5d022cd] | 82 | .SH AUTHORS |
---|
| 83 | Perry Lorier <perry@cs.waikato.ac.nz> |
---|