Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOutputStopped = errors.New("Output plugin stopped")
Functions ¶
This section is empty.
Types ¶
type LogBackend ¶
A LogBackend is able to return a LogDest of a given name. The same name should always return the same LogDest.
type LogCollection ¶
type LogCollection interface {
FindLogSrc() []LogSrc
Start(acc telegraf.Accumulator) error
}
A LogCollection is a collection of LogSrc, a plugin which can provide many LogSrc
type LogDest ¶
A LogDest represents a final endpoint where log events are published to. e.g. a particular log stream in cloudwatchlogs.
type LogEntityProvider ¶ added in v1.300052.0
type LogEntityProvider interface {
Entity() *cloudwatchlogs.Entity
}
type LogSrc ¶
type LogSrc interface {
LogEntityProvider
SetOutput(func(LogEvent))
Group() string
Stream() string
Destination() string
Description() string
Retention() int
Class() string
Stop()
}
A LogSrc is a single source where log events are generated e.g. a single log file
type StatefulLogEvent ¶ added in v1.300057.0
type StatefulLogEvent interface {
LogEvent
Range() state.Range
RangeQueue() state.FileRangeQueue
}
Click to show internal directories.
Click to hide internal directories.