config

package
v0.0.0-...-09dd828 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	WazuhConfig      WazuhConfig      `xml:"ossec_config"`
	IntegratorConfig IntegratorConfig `xml:"integrator_config"`
}

func GetConfig

func GetConfig() (*Config, error)

GetConfig parse ossec.conf then returns config struct

type Integration

type Integration struct {
	Name             string   `xml:"name" json:"name"`
	HookURL          string   `xml:"hook_url" json:"hook_url,omitempty"`
	APIKey           string   `xml:"api_key" json:"api_key,omitempty"`
	Level            int      `xml:"level" json:"level,omitempty"`
	RawRuleID        string   `xml:"rule_id" json:"rule_id,omitempty"`
	RuleIDs          []int    `xml:"-" json:"-"`
	RawGroup         string   `xml:"group" json:"group,omitempty"`
	Groups           []string `xml:"-" json:"-"`
	RawEventLocation string   `xml:"event_location" json:"event_location,omitempty"`
	EventLocations   []string `xml:"-" json:"-"`
	AlertFormat      string   `xml:"alert_format" json:"alert_format,omitempty"`
}

type IntegratorConfig

type IntegratorConfig struct {
	MaxWorkers int `xml:"max_workers"`
}

type WazuhConfig

type WazuhConfig struct {
	Integrations []Integration `xml:"integration"`
}

Jump to

Keyboard shortcuts

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