Debian Codegraph @

man/man1/rasql.1

raw
1 .\"
2 .\" Argus-5.0 Software
3 .\" Copyright (c) 2000-2024 QoSient, LLC
4 .\" All rights reserved.
5 .\"
6 .\"
7 .TH RASQL 1 "12 August 2023" "rasql 5.0.3"
8 .SH NAME
9 \fBrasql\fP \- read \fBargus(8)\fP data from mysql database.
10 .SH SYNOPSIS
11 .B rasql
12 [\fB\-M\fP \fIsql='where clause'\fP] -r mysql://user@host/db/table [\fBraoptions\fP] [\fB--\fP \fIfilter-expression\fP]
13 .SH DESCRIPTION
14 .IX "rasql command" "" "\fBrasql\fP \(em argus data"
15 .LP
16 \fBRasql\fP reads
17 .BR argus
18 data from an argus-client generated mysql database.
19
20 The principal function of rasql is to extract the 'record' binary blob
21 that is inserted by \fIrasqlinsert.1\fP when adding argus data to a
22 mysql table.
23
24 .SH RASQL SPECIFIC OPTIONS
25 Rasql, like all ra based clients, supports a number of \fBra options\fP
26 including filtering of input argus records through a terminating filter expression.
27 \fBrasql(1)\fP specific options are:
28 .TP 4 4
29 .BI \-M "\| sql='where clause'\^"
30 This appends the 'where clause' to the SELECT mysql database command.
31 providing a means to use SQL select and join strategies when performing queries.
32
33
34 .SH INVOCATION
35 This invocation reads \fBargus(8)\fP data from the \fItable\fP table that
36 is contained in the \fIdb\fP database, using the \fIuser\fP database account,
37 and instructs MySQL to select records where the database attribute 'saddr'
38 equals to the string '2.3.4.5'.
39
40 .nf
41
42 \fBrasql\fP -r mysql://user@localhost/db/table -M sql="saddr='2.3.4.5'"
43
44 .fi
45 .SH COPYRIGHT
46 Copyright (c) 2000-2024 QoSient. All rights reserved.
47
48 .SH SEE ALSO
49 .BR ra(1),
50 .BR rasqlinsert(1),
51 .BR rarc(5),
52 .BR argus(8),
53
54 .SH AUTHORS
55 .nf
56 Carter Bullard ([email protected]).
57 .fi