summaryrefslogtreecommitdiffstats
path: root/doc/userguide/suricatasc.1
blob: 40a4bc57b69d1f493ad2860a56f6b4d718ee6910 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
.\" Man page generated from reStructuredText.
.
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "SURICATASC" "1" "Mar 19, 2024" "7.0.4" "Suricata"
.SH NAME
suricatasc \- Tool to interact via unix socket
.SH SYNOPSIS
.sp
\fBsuricatasc\fP
.SH DESCRIPTION
.sp
Suricata socket control tool
.SH COMMANDS
.INDENT 0.0
.TP
.B shutdown
Shut Suricata instance down.
.UNINDENT
.INDENT 0.0
.TP
.B command\-list
List available commands.
.UNINDENT
.INDENT 0.0
.TP
.B help
Get help about the available commands.
.UNINDENT
.INDENT 0.0
.TP
.B version
Print the version of Suricata instance.
.UNINDENT
.INDENT 0.0
.TP
.B uptime
Display the uptime of Suricata.
.UNINDENT
.INDENT 0.0
.TP
.B running\-mode
Display running mode. This can either be \fIworkers\fP, \fIautofp\fP or \fIsingle\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B capture\-mode
Display the capture mode. This can be either of \fIPCAP_DEV\fP,
\fIPCAP_FILE\fP, \fIPFRING(DISABLED)\fP, \fINFQ\fP, \fINFLOG\fP, \fIIPFW\fP, \fIERF_FILE\fP,
\fIERF_DAG\fP, \fIAF_PACKET_DEV\fP, \fINETMAP(DISABLED)\fP, \fIUNIX_SOCKET\fP or
\fIWINDIVERT(DISABLED)\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B conf\-get <variable>
Get configuration value for a given variable. Variable to be provided can be
either of the configuration parameters that are written in suricata.yaml.
.UNINDENT
.INDENT 0.0
.TP
.B dump\-counters
Dump Suricata\(aqs performance counters.
.UNINDENT
.INDENT 0.0
.TP
.B ruleset\-reload\-rules
Reload the ruleset and wait for completion.
.UNINDENT
.INDENT 0.0
.TP
.B reload\-rules
Alias .. describe \fIruleset\-reload\-rules\fP\&.
.UNINDENT
.INDENT 0.0
.TP
.B ruleset\-reload\-nonblocking
Reload ruleset and proceed without waiting.
.UNINDENT
.INDENT 0.0
.TP
.B ruleset\-reload\-time
Return time of last reload.
.UNINDENT
.INDENT 0.0
.TP
.B ruleset\-stats
Display the number of rules loaded and failed.
.UNINDENT
.INDENT 0.0
.TP
.B ruleset\-failed\-rules
Display the list of failed rules.
.UNINDENT
.INDENT 0.0
.TP
.B register\-tenant\-handler <id> <htype> [hargs]
Register a tenant handler with the specified mapping.
.UNINDENT
.INDENT 0.0
.TP
.B unregister\-tenant\-handler <id> <htype> [hargs]
Unregister a tenant handler with the specified mapping.
.UNINDENT
.INDENT 0.0
.TP
.B register\-tenant <id> <filename>
Register tenant with a particular ID and filename.
.UNINDENT
.INDENT 0.0
.TP
.B reload\-tenant <id> [filename]
Reload a tenant with specified ID. A filename to a tenant yaml can be
specified. If it is omitted, the original yaml that was used to load
/ last reload the tenant is used.
.UNINDENT
.INDENT 0.0
.TP
.B reload\-tenants
Reload all registered tenants by reloading their yaml.
.UNINDENT
.INDENT 0.0
.TP
.B unregister\-tenant <id>
Unregister tenant with a particular ID.
.UNINDENT
.INDENT 0.0
.TP
.B add\-hostbit <ipaddress> <hostbit> <expire>
Add hostbit on a host IP with a particular bit name and time of expiry.
.UNINDENT
.INDENT 0.0
.TP
.B remove\-hostbit <ipaddress> <hostbit>
Remove hostbit on a host IP with specified IP address and bit name.
.UNINDENT
.INDENT 0.0
.TP
.B list\-hostbit <ipaddress>
List hostbit for a particular host IP.
.UNINDENT
.INDENT 0.0
.TP
.B reopen\-log\-files
Reopen log files to be run after external log rotation.
.UNINDENT
.INDENT 0.0
.TP
.B memcap\-set <config> <memcap>
Update memcap value of a specified item.
.UNINDENT
.INDENT 0.0
.TP
.B memcap\-show <config>
Show memcap value of a specified item.
.UNINDENT
.INDENT 0.0
.TP
.B memcap\-list
List all memcap values available.
.UNINDENT
.SH PCAP MODE COMMANDS
.INDENT 0.0
.TP
.B pcap\-file <file> <dir> [tenant] [continuous] [delete\-when\-done]
Add pcap files to Suricata for sequential processing. The generated
log/alert files will be put into the directory specified as second argument.
Make sure to provide absolute path to the files and directory. It is
acceptable to add multiple files without waiting the result.
.UNINDENT
.INDENT 0.0
.TP
.B pcap\-file\-continuous <file> <dir> [tenant] [delete\-when\-done]
Add pcap files to Suricata for sequential processing. Directory will be
monitored for new files being added until there is a use of
\fBpcap\-interrupt\fP or directory is moved or deleted.
.UNINDENT
.INDENT 0.0
.TP
.B pcap\-file\-number
Number of pcap files waiting to get processed.
.UNINDENT
.INDENT 0.0
.TP
.B pcap\-file\-list
List of queued pcap files.
.UNINDENT
.INDENT 0.0
.TP
.B pcap\-last\-processed
Processed time of last file in milliseconds since epoch.
.UNINDENT
.INDENT 0.0
.TP
.B pcap\-interrupt
Terminate the current state by interrupting directory processing.
.UNINDENT
.INDENT 0.0
.TP
.B pcap\-current
Currently processed file.
.UNINDENT
.SH BUGS
.sp
Please visit Suricata\(aqs support page for information about submitting
bugs or feature requests.
.SH NOTES
.INDENT 0.0
.IP \(bu 2
Suricata Home Page
.INDENT 2.0
.INDENT 3.5
\fI\%https://suricata.io/\fP
.UNINDENT
.UNINDENT
.IP \(bu 2
Suricata Support Page
.INDENT 2.0
.INDENT 3.5
\fI\%https://suricata.io/support/\fP
.UNINDENT
.UNINDENT
.UNINDENT
.SH COPYRIGHT
2016-2024, OISF
.\" Generated by docutils manpage writer.
.