collect

package
v0.16.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: BSD-3-Clause, GPL-3.0 Imports: 12 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

NET.COLLECT

net collect receives audit records from net agent sensors and writes them to <out>/<client name>/<Type>.ncap.gz. Only agents whose key is in the -clients allowlist can connect, and the directory name comes from that allowlist.

Setup, protocol and limits: docs/distributed-collection.md.

Usage

$ net collect -gen-keypair
wrote collector.crt and collector.key
server fingerprint (pass to agents as -server-fingerprint):
189b7718...

$ echo "b69d2c0a... sensor-dmz" > clients.txt
$ net collect -clients clients.txt -addr 0.0.0.0:1335 -out collected

SIGINT or SIGTERM waits for in-flight batches, then finalizes every file. List every flag with net collect -h.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flags added in v0.6.6

func Flags() []string

Flags returns all flag names for the collect subcommand.

func GetFlags added in v0.9.0

func GetFlags() []cli.Flag

GetFlags returns the CLI flags for the collect subcommand.

func Run added in v0.6.6

func Run()

Run parses the subcommand flags and handles the arguments. This is a compatibility wrapper for the old Run() interface.

func RunWithContext added in v0.9.0

func RunWithContext(ctx context.Context, c *cli.Command) error

RunWithContext runs the collect command with a CLI context.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL