root

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Brimcap = &charm.Spec{
	Name:  "brimcap",
	Usage: "brimcap [global options] command [options] [arguments...]",
	Short: "search, analyze and inspect pcap files",
	Long: `
The Brimcap command provides utilties for searching, analyzing, and inspecting
pcap files. Most users will be interested in the brimcap analyze command, which
will read a pcap stream or file into multiple pcap analyzer processes (defaults
to Zeek and Suricata) and emits the generated logs from these processes. Brimcap
is built on top of the flexible Zed system (https://github.com/brimdata/zed),
so the logs can be written into a variety of structured log formats.

For those familiar with zq (https://github.com/brimdata/zed/cmd/zq), logs can
written as ZNG or ZSON, then use zq to efficiently search through them.
Additionally logs can also be written as ndjson and then operated on using jq
(https://stedolan.github.io/jq/).

The brimcap load command can be used to write logs into the Brim desktop app 
(https://github.com/brimdata/brim) for viewing logs in a rich GUI.

The brimcap index can be used to index pcap files then efficiently searched
through using brimcap search.
`,
	New: New,
}

Functions

func New

func New(parent charm.Command, f *flag.FlagSet) (charm.Command, error)

Types

type ChildCmd

type ChildCmd interface {
	Exec([]string) error
}

type Command

type Command struct {
	charm.Command

	// Child is set by the select Child command.
	Child ChildCmd
	JSON  bool
	// contains filtered or unexported fields
}

func (*Command) AddRunnersToPath

func (c *Command) AddRunnersToPath() error

func (*Command) Cleanup

func (c *Command) Cleanup()

func (*Command) Init

func (c *Command) Init(all ...cli.Initializer) error

func (*Command) Run

func (c *Command) Run(args []string) error

type MsgError

type MsgError struct {
	Type  string `json:"type"`
	Error string `json:"error"`
}

Jump to

Keyboard shortcuts

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