label

package
v0.16.9 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: BSD-3-Clause, GPL-3.0 Imports: 24 Imported by: 0 modules, 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.

Documentation

Overview

Package label implements mapping alerts from suricata to netcap audit records

Index

Constants

This section is empty.

Variables

View Source
var (

	// StopOnDuplicateLabels will stop execution and print info
	// in case more than one label for the same timestamp exists
	// this affects layers being labeled, because they use the labelMap
	// other record types use the label array, which is not affected.
	// handling this needs to be improved in the future.
	StopOnDuplicateLabels = false

	// DisableLayerMapping can be used to disable mapping gopacket layer types.
	DisableLayerMapping = false

	// SuricataConfigPath contains the path for the suricata config file.
	SuricataConfigPath string
)

regular expressions to match data from suricata fast.log.

View Source
var (
	// UseProgressBars whether to use the progress bar.
	UseProgressBars = false

	// Debug mode.
	Debug bool
)
View Source
var CollectLabels bool

CollectLabels indicates whether labels should be collected.

Functions

func CustomLabels

func CustomLabels(pathMappingInfo, outputPath, separator, selection string) error

CustomLabels uses info from a csv file to label the data.

func CustomMap

func CustomMap(man *manager.LabelManager, wg *sync.WaitGroup, file, typ string, outDir, separator, selection string) *pb.ProgressBar

CustomMap uses info from a csv file to label the data func customMap(wg *sync.WaitGroup, file string, typ string, labelMap map[int64]*suricataAlert, labels []*suricataAlert, outDir, separator, selection string) *pb.ProgressBar {.

func SetExcluded

func SetExcluded(arg string)

SetExcluded takes a comma separated list of strings to exclude from labeling.

func Suricata

func Suricata(inputPcap, outputPath string, useDescription bool, separator, selection string) error

Suricata creates labeled CSV files for audit records derived from the provided input file alerts are generated by using suricata to scan the input pcap file a directory named after the input file is created, all suricata logs go there if no output directory is specified, netcap audit records are expected in the current directory. otherwise audit records are expected in the output directory.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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