rastrip1
Strip argus(8) data file.
Usage
rastrip [-M
[replace]
[{+ | -}]
dsr
[-M ...]]
[raoptions]
[--
filter-expression]
Overview
Rastrip reads argus data from an argus-data source, strips the records based on the criteria specified on the command line, and outputs a valid argus-stream. This is useful to reduce the size of argus data files. Rastrip always removes argus management transactions, thus having the same effect as a 'not man' filter expression.
Options
Rastrip, like all ra based clients, supports a number of ra options including filtering of input argus records through a terminating filter expression. See ra(1) for a complete description of ra options. rastrip(1) specific options are:
-
-M [+|-]dsr -
Strip specified dsr (data set record).
Supported dsrs are:
|
flow key data (proto, saddr, sport, dir, daddr, dport) |
|---|---|
|
time stamp fields (stime, ltime). |
|
basic ([s|d]bytes, [s|d]pkts, [s|d]rate, [s|d]load) |
|
aggregation stats (trans, avgdur, mindur, maxdur, stdev). |
|
network objects (tcp, esp, rtp, icmp data). |
|
VLAN tag data |
|
MPLS label data |
|
Jitter data ([s|d]jit, [s|d]intpkt) |
|
IP attributes ([s|d]ipid, [s|d]tos, [s|d]dsb, [s|d]ttl) |
|
src user captured data bytes (suser) |
|
dst captured user data bytes (duser) |
|
MAC addresses (smac, dmac) |
|
ICMP specific data (icmpmap, inode) |
|
Flow encapsulation type indications |
In the default mode, without the -M option, rastrip removes the following default set of dsrs: encaps, agr, vlan, mpls, mac, icmp, ipattr, jitter, suser, duser
-
-M replace -
Replace the existing file with the newly striped file.
Invocation
A sample invocation of rastrip(1). This call reads argus(8) data from inputfile and strips the default dsr set but keeps MAC addresses and writes the result to outputfile:
rastrip -M +mac -r inputfile -w outputfile
This call removes only captured user data and timings and writes the result to stdout:
rastrip -M -suser -M -duser -M -time -r inputfile
Files
Releases
11 releases since Debian 3.1 (Sarge); the text changed 2 times.
-M since Debian 9 (Stretch).