Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BroField ¶
type BroField struct { Name string `json:"name"` Type string `json:"type"` Value string `json:"value"` }
BroField log line field
type BroHeaderFields ¶
type BroHeaderFields struct { Separator string `json:"separator,omitempty"` SetSeparator string `json:"set_separator,omitempty"` EmptyField string `json:"empty_field,omitempty"` UnsetField string `json:"unset_field,omitempty"` Path string `json:"path,omitempty"` Open string `json:"open,omitempty"` Fields []string `json:"fields"` Types []string `json:"types"` }
BroHeaderFields log file header
func ReadHeader ¶
func ReadHeader(filePath string) BroHeaderFields
ReadHeader parses the bro log header
type BroLogLine ¶
type BroLogLine struct { Type string `json:"type,omitempty"` Created string `json:"created,omitempty"` SetSeparator string `json:"set_separator,omitempty"` EmptyField string `json:"empty_field,omitempty"` UnsetField string `json:"unset_field,omitempty"` Fields []BroField `json:"fields,omitempty"` }
BroLogLine log entry
type BroLogs ¶
type BroLogs struct {
Logs []BroLogLine `json:"logs,omitempty"`
}
BroLogs is an array of BroLogLines
func ParseLogFile ¶
ParseLogFile parses out a bro log file
Click to show internal directories.
Click to hide internal directories.