Skip to content

Stream app logs from s3 archive #4339

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Stream app logs from s3 archive #4339

wants to merge 9 commits into from

Conversation

wjordan
Copy link
Contributor

@wjordan wjordan commented Apr 28, 2025

Adds support for streaming historical app logs from an S3 archive bucket through the fly logs command.

This adds several new flags, start, end, and limit to control the time-range and length of logs to stream.
The implementation first grabs an AWS session from the new GetS3LogsToken flaps endpoint (this depends on superfly/fly-go#151), and uses that AWS session to interact with the AWS API directly to list all the relevant S3 objects in the org's bucket prefix, then download, decompress and stream (in timestamp-sorted order) all of the relevant logs within the specified time-range (and app/instance/region) filter.

Documentation

  • Fresh Produce
  • In superfly/docs, or asked for help from docs team
  • n/a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant