SURICATASC(1)

๐Ÿ’… SURICATASC(1) โ€” the Suricata socket-control girlies' guide ๐ŸŽ€

okay bestie, so this is suricatasc, a page from the Suricata manual set, and it's literally the tool that lets you talk to a running Suricata over a unix socket. she's giving assistant-energy, not boss-energy โ€” she just passes your messages along โœจ

๐Ÿฆ‹ NAME ๐Ÿฆ‹

suricatasc โ€” the tool that lets you interact with Suricata via a unix socket. that's it, that's the whole vibe ๐Ÿซถ

๐ŸŒธ SYNOPSIS ๐ŸŒธ

suricatasc [OPTIONS] [SOCKET]

๐Ÿ’– DESCRIPTION ๐Ÿ’–

it's the Suricata socket control tool. no cap, that's what the page says and we're not gonna pretend otherwise ๐Ÿ’…

๐ŸŽ€ SOCKET ๐ŸŽ€

  • an optional path to the Suricata unix socket ๐Ÿงš

like, you can hand her a socket path if you want, but you don't have to. she's flexible like that.

โœจ OPTIONS โœจ

  • -v, --verbose โ€” turns on verbose output. she'll yap more. we love a chatty icon ๐Ÿ’ฌ
  • -c, --command <COMMAND> โ€” runs a command and returns JSON. that's the whole thing, bestie ๐Ÿ“
  • -h, --help โ€” prints the help. the classic. the moment. ๐Ÿ‘‘

๐Ÿ‘‘ COMMANDS ๐Ÿ‘‘

this is the main character section, lowkey. here's every single one:

  • shutdown โ€” shuts the Suricata instance down. like, fully down. bye bestie ๐Ÿ˜ญ
  • command-list โ€” lists the available commands. a menu of possibilities ๐Ÿ’…
  • help โ€” gets help about the available commands. meta, honestly ๐ŸŒ€
  • version โ€” prints the version of the Suricata instance ๐ŸŒˆ
  • uptime โ€” displays the uptime of Suricata โฐ
  • running-mode โ€” displays the running mode. this can be either workers, autofp or single ๐Ÿƒโ€โ™€๏ธ
  • capture-mode โ€” displays the capture mode. this can be either of PCAP_DEV, PCAP_FILE, PFRING(DISABLED), NFQ, NFLOG, IPFW, ERF_FILE, ERF_DAG, AF_PACKET_DEV, NETMAP(DISABLED), UNIX_SOCKET or WINDIVERT(DISABLED) ๐Ÿ”
  • conf-get <variable> โ€” gets the configuration value for a given variable. the variable you provide can be either of the configuration parameters that are written in suricata.yaml ๐Ÿ“
  • dump-counters โ€” dumps Suricata's performance counters ๐Ÿ“Š
  • ruleset-reload-rules โ€” reloads the ruleset and waits for completion. patient queen โณ
  • reload-rules โ€” alias .. describe ruleset-reload-rules. (yes, that's literally what the page says, we're keeping it, it's iconic in its own way ๐Ÿ™ˆ)
  • ruleset-reload-nonblocking โ€” reloads the ruleset and proceeds without waiting. no thoughts, head empty, moving on ๐Ÿ’จ
  • ruleset-reload-time โ€” returns the time of the last reload ๐Ÿ•ฐ๏ธ
  • ruleset-stats โ€” displays the number of rules loaded and failed ๐Ÿ“ˆ
  • ruleset-failed-rules โ€” displays the list of failed rules ๐Ÿ’€
  • register-tenant-handler <id> <htype> [hargs] โ€” registers a tenant handler with the specified mapping ๐Ÿ—‚๏ธ
  • unregister-tenant-handler <id> <htype> [hargs] โ€” unregisters a tenant handler with the specified mapping ๐Ÿ—‘๏ธ
  • register-tenant <id> <filename> โ€” registers a tenant with a particular ID and filename ๐Ÿท๏ธ
  • reload-tenant <id> [filename] โ€” reloads a tenant with the specified ID. a filename to a tenant yaml can be specified. if it's omitted, the original yaml that was used to load / last reload the tenant is used ๐Ÿ”„
  • reload-tenants โ€” reloads all registered tenants by reloading their yaml ๐Ÿซถ
  • unregister-tenant <id> โ€” unregisters the tenant with a particular ID โœ‚๏ธ
  • add-hostbit <ipaddress> <hostbit> <expire> โ€” adds a hostbit on a host IP with a particular bit name and time of expiry ๐Ÿ“Œ
  • remove-hostbit <ipaddress> <hostbit> โ€” removes the hostbit on a host IP with the specified IP address and bit name ๐Ÿงน
  • list-hostbit <ipaddress> โ€” lists hostbit for a particular host IP ๐Ÿ“‹
  • reopen-log-files โ€” reopens log files, to be run after external log rotation ๐Ÿ”
  • memcap-set <config> <memcap> โ€” updates the memcap value of a specified item ๐Ÿงฎ
  • memcap-show <config> โ€” shows the memcap value of a specified item ๐Ÿ‘€
  • memcap-list โ€” lists all memcap values available ๐Ÿ—’๏ธ
  • get-flow-stats-by-id <flow_id> โ€” displays information for a specific flow using flow_id values ๐ŸŒŠ

๐Ÿฆ‹ PCAP MODE COMMANDS ๐Ÿฆ‹

different mode, different rules, same icon energy โญ

  • pcap-file <file> <dir> [tenant] [continuous] [delete-when-done] โ€” adds pcap files to Suricata for sequential processing. the generated log/alert files will be put into the directory specified as the second argument. make sure to provide absolute path to the files and directory. and ngl, it's acceptable to add multiple files without waiting for the result ๐Ÿ‘ฏโ€โ™€๏ธ
  • pcap-file-continuous <file> <dir> [tenant] [delete-when-done] โ€” adds pcap files to Suricata for sequential processing. the directory will be monitored for new files being added, until there is a use of pcap-interrupt or the directory is moved or deleted ๐Ÿ‘€
  • pcap-file-number โ€” number of pcap files waiting to get processed ๐Ÿ”ข
  • pcap-file-list โ€” list of queued pcap files ๐Ÿ“ƒ
  • pcap-last-processed โ€” processed time of last file in milliseconds since epoch โฑ๏ธ
  • pcap-interrupt โ€” terminates the current state by interrupting directory processing ๐Ÿ›‘
  • pcap-current โ€” currently processed file ๐ŸŽฏ

๐Ÿ’€ BUGS ๐Ÿ’€

found a bug? want a feature? please visit Suricata's support page for information about submitting bugs or feature requests ๐Ÿซถ (we're not listing it here, it's coming in NOTES, keep reading bestie)

๐ŸŒธ NOTES ๐ŸŒธ

2016-2026, OISF


lowkey a whole legal moment, but periodt, credit where credit is due ๐Ÿ‘‘

anyway that's the whole page, you ate that, go talk to your socket and slay ๐Ÿ’–โœจ

this gem is version 8.0.8, dated 2026-10-29, brought to you by OISF โ€” mwah, love u, bye ๐Ÿซถ๐Ÿ’…๐ŸŒท

๐Ÿ“ฆ where this page comes from