Debian Codegraph @

man/man1/ragen.1

raw
1 .\"
2 .\" Argus-5.0 Software
3 .\" Copyright (c) 2000-2024 QoSient, LLC
4 .\" All rights reserved.
5 .\"
6 .\"
7 .TH RAGEN 1 "07 October 2023" "ragen 5.0.3"
8 .SH NAME
9 \fBragen\fP \- generate synthetic \fBargus(8)\fP data streams / files.
10 .SH SYNOPSIS
11 .B ragen
12 [\fB\-f\fP \fIconf\fP] [\fB\-m\fP \fIagr(s)\fP] [\fB\-M\fP \fImode(s)\fP] [\fB\-P\fP \fIprocnum\fP] [\fBraoptions\fP] [\fB--\fP \fIfilter-expression\fP]
13 .SH DESCRIPTION
14 .IX "ragen command" "" "\fLragen\fP \(em synthetic argus data"
15 .LP
16 .B Ragen
17 reads
18 .BR argus
19 data from an \fIargus-data\fP source, and uses the data as a baseline
20 to generate synthetic argus data records. The synthetic data is based on the
21 input data and the flow key criteria specified either on the command line, or
22 in a ragen configuration file, and outputs a valid \fIargus-stream\fP.
23 This tool is primarily used to create AI/ML training data.
24
25 Please see ragen.5 for detailed information regarding ragen
26 configuration.
27
28 .SH OPTIONS
29 Ragen, like all ra based clients, supports a number of
30 \fBra options\fP including filtering of input argus
31 records through a terminating filter expression, and the ability
32 to specify the output style, format and contents for printing
33 data. See \fBra(1)\fP for a complete description of \fBra options\fP.
34 \fBragen(1)\fP specific options are:
35 .PP
36 .PD 0
37 .TP 4 4
38 .BI \-m "\| aggregation object\^"
39 Supported aggregation objects are:
40 .PP
41 .RS
42 .TP 15
43 .B none
44 do not merge records (results in no aggregation).
45 .TP
46 .B all
47 merge all records into a single record.
48 .TP
49 .B srcid
50 argus source identifier.
51 .TP
52 .B smac
53 source mac(ether) addr.
54 .TP
55 .B dmac
56 destination mac(ether) addr.
57 .TP
58 .B soui
59 oui portion of the source mac(ether) addr.
60 .TP
61 .B doui
62 oui portion of the destination mac(ether) addr.
63 .TP
64 .B smpls
65 source mpls label.
66 .TP
67 .B dmpls
68 destination label addr.
69 .TP
70 .B svlan
71 source vlan label.
72 .TP
73 .B dvlan
74 destination vlan addr.
75 .TP
76 .B saddr/[l|m]
77 source IP addr/[cidr len | m.a.s.k].
78 .TP
79 .B daddr/[l|m]
80 destination IP addr/[cidr len | m.a.s.k].
81 .TP
82 .B matrix/l
83 sorted src and dst IP addr/cidr len.
84 .TP
85 .B proto
86 transaction protocol.
87 .TP
88 .B sport
89 source port number. Implies use of 'proto'.
90 .TP
91 .B dport
92 destination port number. Implies use of 'proto'.
93 .TP
94 .B stos
95 source TOS byte value.
96 .TP
97 .B dtos
98 destination TOS byte value.
99 .TP
100 .B sttl
101 src -> dst TTL value.
102 .TP
103 .B dttl
104 dst -> src TTL value.
105 .TP
106 .B stcpb
107 src -> dst TCP base sequence number.
108 .TP
109 .B dtcpb
110 dst -> src TCP base sequence number.
111 .TP
112 .B inode[/l|m]]
113 intermediate node IP addr/[cidr len | m.a.s.k], source of ICMP mapped events.
114 .TP
115 .B sco
116 source ARIN country code, if present.
117 .TP
118 .B dco
119 destination ARIN country code, if present.
120 .TP
121 .B sas
122 source node origin AS number, if available.
123 .TP
124 .B das
125 destination node origin AS number, if available.
126 .TP
127 .B ias
128 intermediate node origin AS number, if available.
129
130 .TP
131 .RE
132 .TP 4 4
133 .BI \-M "\| modes\^"
134 Supported modes are:
135 .PP
136 .RS
137 .TP 15
138 .B correct
139 Attempt to correct the direction of flows by also searching the reverse
140 flow key, if a match isn't found in the cache. This mode is on by default
141 when using the default full 5-tuple flow key definitions.
142 .TP
143 .B nocorrect
144 Turn off flow correction for direction. This mode is used by default
145 if the flow key has been changed.
146 .TP
147 .B norep
148 Do not generate an aggregate statistic for each flow. This is used
149 primarily when the output represents a single object. Primarily used
150 when merging status records to generate single flows that represent
151 single transactions.
152 .TP
153 .B rmon
154 Generate data suitable for producing RMON types of metrics.
155 .TP
156 .B ind
157 Process each input file independantly, so that after the end of
158 each inputfile, ragen flushes its output.
159 .TP
160 .B replace
161 Replace each inputfile contents, with the aggregated output. The initial file compression status is maintained
162 .PD
163 .RE
164 .TP 4 4
165 .BI \-P <procnum>
166 Specify the number of processors to use for aggregation. Default is 1.
167 .RE
168 .TP 4 4
169 .BI \-V
170 Verbose operation, printing a line of output for each input file processed.
171 Very useful when using the ra() -R option.
172 .RE
173
174 .SH INVOCATION
175 A sample invocation of \fBragen(1)\fP. This call reads \fBargus(8)\fP data
176 from \fBinputfile\fP and aggregates the TCP protocol based \fBargus(8)\fP data.
177 By default, \fBragen(1)\fP merges using the standard 5-tuple flow key.
178 This method is used to merge multiple status records into a single flow record
179 per transaction.
180
181 .nf
182 .ft CW
183 .ps 6
184 .vs 7
185 % ra -r argus.tcp.2012.02.13.12.20.00
186 StartTime Dur Trans Flgs Proto SrcAddr Sport Dir DstAddr Dport TotPkts State
187 12:23:07.268 0.997 1 e i tcp 192.168.0.68.59016 -> 208.59.201.75.http 298 CON
188 12:23:08.294 1.000 1 e tcp 192.168.0.68.59016 -> 208.59.201.75.http 111 CON
189 12:23:09.294 0.991 1 e d tcp 192.168.0.68.59016 -> 208.59.201.75.http 637 CON
190 12:23:10.331 0.330 1 e tcp 192.168.0.68.59016 -> 208.59.201.75.http 89 CON
191 12:23:32.183 0.010 1 e tcp 192.168.0.68.59016 -> 208.59.201.75.http 3 FIN
192
193 % ragen -r argus.tcp.2012.02.13.12.20.00
194 StartTime Dur Trans Flgs Proto SrcAddr Sport Dir DstAddr Dport TotPkts State
195 12:23:07.268 24.925 5 e d tcp 192.168.0.68.59016 -> 208.59.201.75.http 1138 FIN
196 .vs
197 .ps
198 .ft P
199 .fi
200
201 A sample invocation of \fBragen(1)\fP. This call reads \fBargus(8)\fP data
202 from \fBinputfile\fP and aggregates the TCP protocol based \fBargus(8)\fP data,
203 based on the source and destination address matrix and the protocol. It reports the metrics
204 as a percent of the total.
205
206 .nf
207 .ft CW
208 .ps 6
209 .vs 7
210
211 % ragen -r argus.2012.02.13.17.20.00 -m saddr/16 daddr proto -% \\
212 -s stime dur trans proto saddr dir daddr pkts state - tcp and port https
213
214 StartTime Dur pTrans Proto SrcAddr Dir DstAddr pTotPkts State
215 17:49:54.225 8.101 33.333 tcp 192.168.0.0/16 -> 17.154.66.18 23.372 FIN
216 17:48:42.607 179.761 13.333 tcp 192.168.0.0/16 -> 17.172.224.25 31.052 FIN
217 17:50:01.113 0.803 6.667 tcp 192.168.0.0/16 -> 17.250.248.161 5.676 FIN
218 17:49:54.525 1.153 6.667 tcp 192.168.0.0/16 -> 64.12.173.137 5.509 FIN
219 17:50:35.411 101.133 26.667 tcp 192.168.0.0/16 -> 184.28.150.87 19.199 RST
220 17:49:56.061 73.415 6.667 tcp 192.168.0.0/16 -> 205.188.8.47 11.018 RST
221 17:49:55.677 0.434 6.667 tcp 192.168.0.0/16 -> 205.188.101.10 4.174 FIN
222 .vs
223 .ps
224 .ft P
225 .fi
226
227 .SH COPYRIGHT
228 Copyright (c) 2000-2024 QoSient. All rights reserved.
229 .SH SEE ALSO
230 .BR racluster(5),
231 .BR ra(1),
232 .BR rarc(5),
233 .BR argus(8),
234 .SH FILES
235
236 .SH AUTHORS
237 .nf
238 Carter Bullard ([email protected]).
239 .fi
240 .SH BUGS