| Crates.io | tail-s3 |
| lib.rs | tail-s3 |
| version | 0.1.2 |
| created_at | 2025-01-24 19:41:02.865699+00 |
| updated_at | 2025-06-11 18:12:57.877279+00 |
| description | A command-line utility that monitors and streams content from an S3 object in real-time, similar to the Unix `tail -f` command but for S3 objects. |
| homepage | https://github.com/leoleoasd/tail-s3 |
| repository | https://github.com/leoleoasd/tail-s3 |
| max_upload_size | |
| id | 1529890 |
| size | 84,900 |
A command-line utility that monitors and streams content from an S3 object in real-time, similar to the Unix tail -f command but for S3 objects.
cargo install tail-s3
tail-s3 s3://my-bucket/my-key
s3_url: S3 URL in the format s3://bucket/key (required)--region, -r: AWS region (optional, uses default from AWS configuration)--profile, -p: AWS profile name (optional, defaults to "default")# Monitor a log file in S3
tail-s3 s3://my-bucket/logs/application.log
# Use specific AWS profile and region
tail-s3 s3://my-bucket/logs/app.log --profile prod --region us-west-2
# Monitor training outputs
tail-s3 s3://ml-bucket/training/output.log --profile ml
The tool uses the AWS SDK for Rust and follows standard AWS configuration practices. Make sure you have:
~/.aws/credentials)~/.aws/config)tail-s3 uses S3 range requests to efficiently fetch only new content that has been appended to the object. It polls the S3 object every second for new content and prints it to stdout, making it ideal for monitoring growing log files or other append-only files in S3.
MIT