Skip to content

Commit

Permalink
limit startStream to 100 streams.
Browse files Browse the repository at this point in the history
  • Loading branch information
shirou committed Jun 25, 2018
1 parent 8ded768 commit 39936f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cloudwatch_logs_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ func (reader *CloudwatchLogsReader) startStream(stream chan Event, watch bool) {
close(stream)
return
}

// FilterLogEventsInput can not use more than 100 streams.
if len(ss) > 100 {
ss = ss[0:99]
}

params := &cloudwatchlogs.FilterLogEventsInput{
StartTime: aws.Int64(aws.TimeUnixMilli(reader.start)),
EndTime: aws.Int64(aws.TimeUnixMilli(reader.end)),
Expand Down

0 comments on commit 39936f5

Please sign in to comment.