awslogs

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterAwsLogs

func FilterAwsLogs(dst *Destination, goroutines int, timePeriod []common.TimeDuration)

func LimitHandler

func LimitHandler(num *string) (int64, int64)

func ListLogGroups

func ListLogGroups(dst *Destination)

func ListStreams

func ListStreams(dst *Destination)

func SetupCloseHandler

func SetupCloseHandler()

func WatchAwsLogs

func WatchAwsLogs(dst *Destination, timePeriod []common.TimeDuration)

func WriteToCli

func WriteToCli(data []*cloudwatchlogs.FilterLogEventsOutput)

func WriteToFile

func WriteToFile(filename string, data []*cloudwatchlogs.FilterLogEventsOutput)

Types

type Destination

type Destination struct {
	Group         string
	NextToken     string
	Limit         int64
	MaxItems      int64
	FilterPattern string
	Streams       []*string
	StreamPrefix  string
	WatchInterval int
	Watch         bool
	Descending    bool
	OrderBy       string
	WriteToFile   bool
	Svc           *cloudwatchlogs.CloudWatchLogs
	// contains filtered or unexported fields
}

func (*Destination) FilterAwsLogs

func (dst *Destination) FilterAwsLogs(startTime, endTime int64) ([]*cloudwatchlogs.FilterLogEventsOutput, error)

func (*Destination) ListLogGroups

func (dst *Destination) ListLogGroups() []*string

func (*Destination) ListStreams

func (dst *Destination) ListStreams() []*string

func (*Destination) NewFilter

func (dst *Destination) NewFilter(startTime, endTime int64) *cloudwatchlogs.FilterLogEventsInput

func (*Destination) NewListGroup

func (dst *Destination) NewListGroup() *cloudwatchlogs.DescribeLogGroupsInput

func (*Destination) NewStreams

Jump to

Keyboard shortcuts

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