1 | .TH TRACESPLIT "1" "October 2005" "tracesplit (libtrace)" "User Commands" |
---|
2 | .SH NAME |
---|
3 | tracesplit \- split traces |
---|
4 | .SH SYNOPSIS |
---|
5 | .B tracesplit |
---|
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] |
---|
13 | inputuri outputuri ... |
---|
14 | .SH DESCRIPTION |
---|
15 | tracesplit splits one trace into multiple tracefiles |
---|
16 | .TP |
---|
17 | \fB\-f\fR bpf filter |
---|
18 | output only packets that match tcpdump style bpf filter |
---|
19 | |
---|
20 | .TP |
---|
21 | \fB\-c\fR count |
---|
22 | output count packets per output file. The output file will be named after |
---|
23 | the basename given in the outputuri with the packet number of the first packet |
---|
24 | in this file. |
---|
25 | |
---|
26 | .TP |
---|
27 | \fB\-b\fR bytes |
---|
28 | output bytes bytes per file |
---|
29 | |
---|
30 | .TP |
---|
31 | \fB\-i\fR seconds |
---|
32 | start a new tracefile after "seconds" seconds |
---|
33 | |
---|
34 | .TP |
---|
35 | \fB\-s\fR unixtime |
---|
36 | don't output any packets before unixtime |
---|
37 | |
---|
38 | .TP |
---|
39 | \fB\-e\fR unixtime |
---|
40 | don't output any packets after unixtime |
---|
41 | |
---|
42 | .TP |
---|
43 | \fB\-m\fR maxfiles |
---|
44 | do not create more than "maxfiles" trace files |
---|
45 | |
---|
46 | .SH EXAMPLES |
---|
47 | create a 1MB erf trace of port 80 traffic. |
---|
48 | .nf |
---|
49 | tracemerge erf:/traces/bigtrace.gz \-f 'port 80' \-b $[ 1024 * 1024 ] |
---|
50 | erf:/traces/port80.gz |
---|
51 | .fi |
---|
52 | |
---|
53 | .SH LINKS |
---|
54 | More details about tracesplit (and libtrace) can be found at |
---|
55 | http://www.wand.net.nz/trac/libtrace/wiki/UserDocumentation |
---|
56 | |
---|
57 | .SH SEE ALSO |
---|
58 | libtrace(3), tracemerge(1), tracefilter(1), traceconvert(1), tracesplit_dir(1), |
---|
59 | tracereport(1), tracertstats(1), tracestats(1), tracedump(1), traceanon(1), |
---|
60 | tracesummary(1) |
---|
61 | |
---|
62 | .SH AUTHORS |
---|
63 | Perry Lorier <perry@cs.waikato.ac.nz> |
---|