-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it more palatable for ECS environments #29
base: master
Are you sure you want to change the base?
Conversation
…g group. Helpful for ECS setups
This is great! Apologizes, I've been busy and haven't gotten a chance to look at this yet. I'll try and review the code soon. Thanks for contributing. |
@@ -150,6 +169,7 @@ func (b *Blade) StreamEvents() { | |||
} | |||
return !lastPage | |||
} | |||
fmt.Printf("starting to tail logs from %d streams ...\n", len(input.LogStreamNames)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you mind removing this bit? As part of the design I like there to be no other output than data or errors (this helps with things downstream if you pipe the output of saw into other programs)
if lastPage || len(streams) >= 100 { | ||
return false | ||
} | ||
return true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might return the bool directly here.
Maybe:
return !lastPage && len(streams) < 100
ECS creates log stream per container and the current watch method takes about 2 minutes in my environment to get log streams. Since ECS creates log group per task, I added a
--recent
flag to find streams based onEventTime
.