config

package
v0.0.0-...-720764a Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REPLACE_KEY      string = ""
	DockerHost       string = ""
	DockerAPIVersion string = "1.41"
	MaxLogLength     int    = 32768
	BufferSize       int    = 50000

	DataType string = "utmstack"
)

Variables

View Source
var (
	DependUrl        = "https://%s:%s/private/dependencies/collector/%s"
	AgentManagerPort = "9000"
	LogAuthProxyPort = "50051"
	DependenciesPort = "9001"

	ServiceLogFile      = filepath.Join(utils.GetMyPath(), "logs", "utmstack_collector.log")
	UUIDFileName        = filepath.Join(utils.GetMyPath(), "uuid.yml")
	ConfigurationFile   = filepath.Join(utils.GetMyPath(), "config.yml")
	RetentionConfigFile = filepath.Join(utils.GetMyPath(), "retention.json")
	LogsDBFile          = filepath.Join(utils.GetMyPath(), "logs_process", "logs.db")
	VersionPath         = filepath.Join(utils.GetMyPath(), "version.json")
)
View Source
var FilterRules = []models.FilterRule{
	{
		Type:    "name",
		Pattern: ".*postgres.*",
		Action:  "exclude",
	},
	{
		Type:    "name",
		Pattern: ".*logstash.*",
		Action:  "exclude",
	},
	{
		Type:    "name",
		Pattern: ".*mutate.*",
		Action:  "exclude",
	},
	{
		Type:    "name",
		Pattern: ".*node1.*",
		Action:  "exclude",
	},
	{
		Type:    "name",
		Pattern: ".*filebrowser.*",
		Action:  "exclude",
	},
	{
		Type:    "name",
		Pattern: ".*user-auditor.*",
		Action:  "exclude",
	},
	{
		Type:    "name",
		Pattern: ".*web-pdf.*",
		Action:  "exclude",
	},
	{
		Type:    "name",
		Pattern: ".*frontend.*",
		Action:  "exclude",
	},
}

Functions

func GenerateNewUUID

func GenerateNewUUID() (string, error)

func GetUUID

func GetUUID() (string, error)

func SaveConfig

func SaveConfig(cnf *Config) error

Types

type Config

type Config struct {
	Server             string `yaml:"server"`
	CollectorID        uint   `yaml:"collector-id"`
	CollectorKey       string `yaml:"collector-key"`
	SkipCertValidation bool   `yaml:"insecure"`
}

func GetCurrentConfig

func GetCurrentConfig() (*Config, error)

func GetInitialConfig

func GetInitialConfig() (*Config, string)

type InstallationUUID

type InstallationUUID struct {
	UUID string `yaml:"uuid"`
}

type MSGDS

type MSGDS struct {
	DataSource string
	Message    string
}

Jump to

Keyboard shortcuts

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