Documentation
¶
Index ¶
Constants ¶
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 SaveConfig ¶
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 GetInitialConfig ¶
type InstallationUUID ¶
type InstallationUUID struct {
UUID string `yaml:"uuid"`
}
Click to show internal directories.
Click to hide internal directories.