ZEEKCTL(8)
β¨ ZEEKCTL β¨
okay bestie, gather round, because this one is literally the group chat admin of your whole Zeek setup π
it's zeekctl from the System Administration Utilities section of the manual (section 8, iykyk), and it's about to become your main character.
πΈ NAME πΈ
zeekctl β the interactive shell for managing Zeek installations π¦
π SYNOPSIS π
zeekctl [command]
π DESCRIPTION π
So zeekctl is an interactive interface for managing either a standalone install or a Zeek cluster installation. Both. She does both. π
Here's the vibe: if you pass a zeekctl command directly on the command-line, then zeekctl just does the thing for that command immediately β no interactive interface, no small talk, straight to business. β¨
But before you actually run zeekctl, you first need to edit the zeekctl.cfg, node.cfg, and networks.cfg files. Not optional, bestie. Order of operations:
- In the
zeekctl.cfgfile, review thezeekctloptions and make sure the options are set correctly for your environment. π - Next, edit the
node.cfgfile and specify the nodes that you will be running. π₯οΈ - Finally, edit the
networks.cfgfile and list each network that is considered local to the monitored environment (see the examples in the file for the format to use). π
okay and this part is SO important: when runningzeekctlfor the first time, you must run thezeekctl deploycommand before running any other commands in order to apply the configuration settings. no skipping. π
You must also run zeekctl deploy each time you change the configuration (including any Zeek scripts) or upgrade Zeek. Every. Single. Time. She needs the deploy, she's dramatic like that. π
π OPTIONS π
capstats [<nodes>] [<secs>]β report interface statistics withcapstatsπcheck [<nodes>]β check configuration before installing it βcleanup [--all] [<nodes>]β delete working dirs (flush state) on nodes π§Ήconfigβ printzeekctlconfiguration π¨οΈcron [--no-watch]β perform jobs intended to run from cron β°cron enable|disable|?β enable/disable "cron" jobs πdeployβ check, install, and restart π (the icon, the moment, the ritual)df [<nodes>]β print nodes' current disk usage πΎdiag [<nodes>]β output diagnostics for nodes π©Ίexec <shell cmd>β execute shell command on all hosts πexitβ exit from the interactive interface πinstallβ updatezeekctlinstallation/configuration π¦netstats [<nodes>]β print nodes' current packet counters πnodesβ print node configuration πpeerstatus [<nodes>]β print status of nodes' remote connections π€print <id> [<nodes>]β print values of script variable at nodes πprocess <trace> [<op>] [-- <sc>]β run Zeek (with options and scripts) on trace π¬restart [--clean] [<nodes>]β stop and then restart processing πscripts [-c] [<nodes>]β list the Zeek scripts the nodes will load πstart [<nodes>]β start processing βΆοΈstatus [<nodes>]β summarize node status πstop [<nodes>]β stop processing βΉοΈtop [<nodes>]β show Zeek processes alatopπ
π§ Commands provided by plugins:
ps.zeek [<nodes>]β show Zeek processes on nodes' systems π«Ά
π AUTHOR π
zeekctl was written by The Zeek Project <info@zeek.org>. π
and that's the whole page, bestie β no cap, you're ready to deploy. this little legend is dated November 2014, and it lives in section ZEEKCTL(8) of the manual, so if you ever forget where you read this, that's the receipt. now go forth and deploy, periodt. πβ¨π
π¦ where this page comes from
- epel 9: zeekctl 4.2.0-1.el9 Β· ASL 2.0 and Boost and BSD and ISC and LGPLv3+ and MIT and NCSA
- fedora 43: zeekctl 6.0.4-1.fc41 Β· BSD-3-Clause AND Apache-2.0 AND BSL-1.0 AND ISC AND LGPL-3.0-or-later AND MIT AND NCSA
- fedora 44: zeekctl 6.0.4-1.fc41 Β· BSD-3-Clause AND Apache-2.0 AND BSL-1.0 AND ISC AND LGPL-3.0-or-later AND MIT AND NCSA
- nixos 26.05: zeek 8.0.10
- nixpkgs unstable: zeek 8.2.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms