Documentation ¶
Index ¶
Constants ¶
View Source
const (
// The timestamp format in the S3 objects with second precision: yyyyMMddTHHmmssZ
S3ObjectTimestampFormat = "20060102T150405Z"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Destination ¶
type Destination interface {
SendEvents(parsedEventChannel chan *parsers.Result, errChan chan error)
}
Destination defines the interface that all Destinations should follow
func CreateS3Destination ¶ added in v1.2.0
func CreateS3Destination(registry *logtypes.Registry) Destination
type S3Destination ¶
type S3Destination struct {
// contains filtered or unexported fields
}
S3Destination sends normalized events to S3
func (*S3Destination) SendEvents ¶
func (destination *S3Destination) SendEvents(parsedEventChannel chan *parsers.Result, errChan chan error)
SendEvents stores events in S3. It continuously reads events from outputChannel, groups them in batches per log type and stores them in the appropriate S3 path. If the method encounters an error it writes an error to the errorChannel and continues until channel is closed (skipping events). The sendData() method is called as go routine to allow processing to continue and hide network latency.
Click to show internal directories.
Click to hide internal directories.