ZEEKCTL(8)

πŸ“¦ version 6.0.4, in epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

✨ 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:

  1. In the zeekctl.cfg file, review the zeekctl options and make sure the options are set correctly for your environment. 🌍
  2. Next, edit the node.cfg file and specify the nodes that you will be running. πŸ–₯️
  3. Finally, edit the networks.cfg file 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 running zeekctl for the first time, you must run the zeekctl deploy command 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 with capstats πŸ“Š
  • check [<nodes>] β€” check configuration before installing it βœ…
  • cleanup [--all] [<nodes>] β€” delete working dirs (flush state) on nodes 🧹
  • config β€” print zeekctl configuration πŸ–¨οΈ
  • 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 β€” update zeekctl installation/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 ala top πŸ‘€

🧚 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