analyzecli

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultZeek = analyzer.Config{
		Cmd: "zeekrunner",
	}
	DefaultSuricata = analyzer.Config{
		Cmd:    "suricatarunner",
		Globs:  []string{"*.json"},
		Shaper: suricatashaper,
	}
)

Functions

func EnsureWorkDirs added in v1.0.3

func EnsureWorkDirs(configs []analyzer.Config) (string, error)

EnsureWorkDirs creates temporary directories and sets them for a config if WorkDir is not set. If a temporary directory is needed, the path for the base directory is returned.

Types

type Display

type Display interface {
	Warn(string) error
	Stats(analyzer.Stats) error
	End()
}

func JSONDisplay added in v1.0.0

func JSONDisplay(stats bool, pcapsize int64, span nano.Span) Display

func StatusLineDisplay added in v1.0.0

func StatusLineDisplay(stats bool, pcapsize int64, span nano.Span) Display

type Flags

type Flags struct {
	// contains filtered or unexported fields
}

func (*Flags) LoadConfigs added in v1.0.3

func (f *Flags) LoadConfigs() ([]analyzer.Config, error)

func (*Flags) SetFlags

func (f *Flags) SetFlags(fs *flag.FlagSet)

type MsgStatus

type MsgStatus struct {
	Type           string     `json:"type"`
	Ts             nano.Ts    `json:"ts"`
	PcapReadSize   int64      `json:"pcap_read_size"`
	PcapTotalSize  int64      `json:"pcap_total_size"`
	RecordsWritten int64      `json:"records_written"`
	Span           *nano.Span `json:"span,omitempty"`
}

type MsgWarning

type MsgWarning struct {
	Type    string `json:"type"`
	Warning string `json:"warning"`
}

Jump to

Keyboard shortcuts

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