analyzecli

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: BSD-3-Clause Imports: 11 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

This section is empty.

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 {
	Configs []analyzer.Config
	// contains filtered or unexported fields
}

func (*Flags) Init

func (f *Flags) Init() (err 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