processor

package
v0.0.0-...-a48a816 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PullLogs

func PullLogs(group types.ModuleGroup, startTime time.Time) error

func SendToLogstash

func SendToLogstash(data []TransformedLog) *logger.Error

Types

type ApiHosts

type ApiHosts struct {
	Global     string `json:"global"`
	DataRegion string `json:"dataRegion"`
}

type EventAggregate

type EventAggregate struct {
	Pages Pages            `json:"pages"`
	Items []map[string]any `json:"items"`
}

type Pages

type Pages struct {
	FromKey string `json:"fromKey"`
	NextKey string `json:"nextKey"`
	Size    int64  `json:"size"`
	MaxSize int64  `json:"maxSize"`
}

type SophosCentralProcessor

type SophosCentralProcessor struct {
	ClientID     string
	ClientSecret string
	TenantID     string
	DataRegion   string
	AccessToken  string
	ExpiresAt    time.Time
}

type TransformedLog

type TransformedLog struct {
	Logx struct {
		SophosCentral map[string]interface{} `json:"sophos_central"`
	} `json:"logx"`
	Global struct {
		Type string `json:"type"`
	} `json:"global"`
	Timestamp  string `json:"@timestamp"`
	DataType   string `json:"dataType"`
	DataSource string `json:"dataSource"`
}

func ETLProcess

func ETLProcess(events EventAggregate, group types.ModuleGroup) []TransformedLog

type WhoamiResponse

type WhoamiResponse struct {
	ID       string   `json:"id"`
	ApiHosts ApiHosts `json:"apiHosts"`
}

Jump to

Keyboard shortcuts

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