Skip to content

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