config

package
v0.0.0-...-c7c381b Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package config provides the winlogbeat specific configuration options.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IgnoreOlderDuration

func IgnoreOlderDuration(ignoreOlder string) (time.Duration, error)

IgnoreOlderDuration returns the parsed value of the IgnoreOlder string. If IgnoreOlder is not set then (0, nil) is returned. If IgnoreOlder is not parsable as a duration then an error is returned. See time.ParseDuration.

Types

type ConfigSettings

type ConfigSettings struct {
	Winlogbeat WinlogbeatConfig
}

type EventLogConfig

type EventLogConfig struct {
	Name        string
	IgnoreOlder string `yaml:"ignore_older"`
}

func (EventLogConfig) Validate

func (elc EventLogConfig) Validate() error

Validates the EventLogConfig data and returns an error describing any problems or nil.

type MetricsConfig

type MetricsConfig struct {
	BindAddress string // Bind address for the metric service. Format is host:port.
}

func (MetricsConfig) Validate

func (mc MetricsConfig) Validate() error

Validates the MetricsConfig data and returns an error describing any problems or nil.

type Validator

type Validator interface {
	Validate() error
}

type WinlogbeatConfig

type WinlogbeatConfig struct {
	IgnoreOlder string           `yaml:"ignore_older"`
	EventLogs   []EventLogConfig `yaml:"event_logs"`
	Metrics     MetricsConfig
}

func (WinlogbeatConfig) Validate

func (ebc WinlogbeatConfig) Validate() error

Validates the WinlogbeatConfig data and returns an error describing all problems or nil if there are none.

Jump to

Keyboard shortcuts

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