Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultRegistryFile specifies the default filename of the registry file DefaultRegistryFile = ".aalogbeat.yml" // DefaultFilePattern specifies the default file extension for log files DefaultFilePattern = "*.aaLOG" // DefaultDirectory specifies the default directory that contains logs to monitor DefaultDirectory = "C:/ProgramData/ArchestrA/LogFiles" // DefaultBatchSize specifies the default number of log messages to read at a time DefaultBatchSize = 10000 // DefaultShutdowntTimeout specifies duration to wait for the publisher to finish sending events DefaultShutdownTimeout = 0 // DefaultBackfillEnabled specifies whether backfilling old log messages is enabled DefaultBackfillEnabled = false // DefaultBackfillStart specifies the date from which to backfill old log messsages DefaultBackfillStart = "" // DefautlBackfillDuration specifies the duration over which to backfill old log messages DefaultBackfillDuration = 0 )
Variables ¶
View Source
var AalogbeatConfigKeys = common.MakeStringSet("batch_size", "file_pattern",
"directory", "fields", "tags", "shutdown_timeout", "registry_file",
"backfill_enabled", "backfill_start", "backfill_duration")
View Source
var ( DefaultSettings = AalogbeatConfig{ RegistryFile: DefaultRegistryFile, FilePattern: DefaultFilePattern, Directory: DefaultDirectory, BatchSize: DefaultBatchSize, ShutdownTimeout: DefaultShutdownTimeout, BackfillEnabled: DefaultBackfillEnabled, BackfillStart: DefaultBackfillStart, BackfillDuration: DefaultBackfillDuration, } )
Functions ¶
func ReadConfig ¶
Types ¶
type AalogbeatConfig ¶
type AalogbeatConfig struct { Directory string `config:"directory"` FilePattern string `config:"file_pattern"` BatchSize int `config:"batch_size" validate:"min=1"` RegistryFile string `config:"registry_file"` ShutdownTimeout time.Duration `config:"shutdown_timeout"` BackfillEnabled bool `config:"backfill_enabled"` BackfillStart string `config:"backfill_start"` // Unpack does not appear to support time.Time BackfillDuration time.Duration `config:"backfill_duration"` }
AalogbeatConfig contains all of Aalogbeat configuration data
func (AalogbeatConfig) Validate ¶
func (c AalogbeatConfig) Validate() error
Validate validates the AalogbeatConfig data and returns an error describing all problems or nil if there are none.
Click to show internal directories.
Click to hide internal directories.