Skip to content

Make it more palatable for ECS environments#29

Open
vagmi wants to merge 2 commits into
TylerBrock:masterfrom
tarkalabs:master
Open

Make it more palatable for ECS environments#29
vagmi wants to merge 2 commits into
TylerBrock:masterfrom
tarkalabs:master

Conversation

@vagmi
Copy link
Copy Markdown

@vagmi vagmi commented Feb 20, 2019

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 on EventTime.

@vagmi vagmi changed the title Make it more palatable for docker-compose environments Make it more palatable for ECS environments Feb 20, 2019
@TylerBrock
Copy link
Copy Markdown
Owner

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.

Comment thread blade/blade.go
}
return !lastPage
}
fmt.Printf("starting to tail logs from %d streams ...\n", len(input.LogStreamNames))
Copy link
Copy Markdown
Owner

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)

Comment thread blade/blade.go
Comment on lines +103 to +106
if lastPage || len(streams) >= 100 {
return false
}
return true
Copy link
Copy Markdown

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

@ipmb ipmb mentioned this pull request Apr 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants