Home

Awesome

Zeekcfg is a node.cfg file generator for zeekctl.

Usage

You can run this in 3 different modes:

Usage:
  zeekcfg [flags]

Flags:
      --auto                    Automatically determine the best settings rather than prompting.
  -h, --help                    help for zeekcfg
  -i, --interface stringArray   Capture interface(s) to use. Specify multiple times for more than one interface.
      --no-pin                  Do not pin worker processes to CPU cores. (default)
  -o, --output string           Path to write output file. (default: stdout)
      --pin                     Pin worker processes to CPU cores.
  -p, --processes uint16        Max number of processes to use. Set to 0 to auto-determine based on the number of CPU cores.
  -t, --type string             Socket type to use. Must be "raw" or "afpacket". (default "raw")

Examples

Interactive mode:

zeekcfg
# can also save output to a file
zeekcfg --output node.cfg

Semi-interactive mode:

# prompts for interfaces
zeekcfg --no-pin --processes 0 --type afpacket

Automated mode:

# accept all the default calculated values
zeekcfg --auto
# supply some custom values and accept defaults for the rest
zeekcfg --auto --interface eth1 --processes 4
# auto mode can be implied since all arguments are manually specified
zeekcfg --interface ens0 --interface ens1 --interface ens2 --processes 30 --pin --type afpacket

Defaults Rationale

Further Tuning

TODO

Credits