Documentation
¶
Overview ¶
Package schema defines shared configuration types for collector packages. This package exists to avoid circular imports between collector, syslog, and netflow.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidatePortChange ¶
ValidatePortChange returns true if the port is within the valid range.
func WriteCollectorConfig ¶
func WriteCollectorConfig(cnf *CollectorConfig) error
WriteCollectorConfig writes the collector configuration to disk.
Types ¶
type CollectorConfig ¶
type CollectorConfig struct {
Integrations map[string]Integration `json:"integrations"`
FileIntegrations map[string]FileIntegration `json:"file_integrations,omitempty"`
}
CollectorConfig represents the full collector configuration file.
func ReadCollectorConfig ¶
func ReadCollectorConfig() (CollectorConfig, error)
ReadCollectorConfig reads the collector configuration from disk.
type FileIntegration ¶
FileIntegration represents a file-based log collector configuration.
type Integration ¶
type Integration struct {
TCP Port `json:"tcp_port,omitempty"`
UDP Port `json:"udp_port,omitempty"`
}
Integration represents a collector integration configuration (syslog/netflow).
Click to show internal directories.
Click to hide internal directories.