output

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TagString

func TagString(tags []string) string

TagString joins tags with a dash, matching the original output format.

func Write

func Write(w io.Writer, outputType string, results []ScanResult, r Renderer) error

Write renders results in the requested format to w. outputType must be "json", "csv", or any other value for a table.

Types

type Renderer

type Renderer struct {
	Headers []string
	Row     func(ScanResult) []string
}

Renderer defines the table/CSV columns for a specific log type. JSON output always serialises the full ScanResult struct.

type ScanResult

type ScanResult struct {
	Timestamp string   `json:"Timestamp"`
	Message   string   `json:"Message,omitempty"`
	User      string   `json:"User,omitempty"`
	Exe       string   `json:"Exe,omitempty"`
	Terminal  string   `json:"Terminal,omitempty"`
	PID       string   `json:"PID,omitempty"`
	Tags      []string `json:"Tags"`
	Author    string   `json:"Author"`
	RuleID    string   `json:"ID"`
	Title     string   `json:"Title"`
}

ScanResult is the common result produced by all log mappers after evaluating Sigma rules.

Jump to

Keyboard shortcuts

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