S3grep
CLI tool for searching logs and unstructured content in Amazon S3 buckets
Install / Use
/learn @dacort/S3grepREADME
s3grep - Fast Parallel grep for S3
I use grep almost daily, but often deal with unstructured content and logs on S3...so I wrote an easy way to grep S3!
s3grep is a parallel CLI tool for searching logs and unstructured content in Amazon S3 buckets. It supports .gz decompression, progress bars, and robust error handling—making it ideal for cloud-native log analysis.
Features
- Parallel, concurrent search across S3 objects
- Supports plain text and
.gzcompressed files - Progress bars for files and bytes processed
- Case-sensitive and insensitive search
- Line number output option
- Graceful handling of binary files and decompression errors
- Colorized match highlighting
Installation
crates.io
cargo install s3grep
Usage
s3grep --pattern "ERROR" --bucket my-logs-bucket --prefix logs/ --concurrent-tasks 16
CLI Options
| Flag | Description |
|---------------------|---------------------------------------------|
| -p, --pattern | Search pattern (required) |
| -b, --bucket | S3 bucket name (required) |
| -z, --prefix | S3 prefix to search in (default: "") |
| -c, --concurrent-tasks | Number of concurrent tasks (default: 8) |
| -i, --case-sensitive | Case sensitive search |
| -q, --quiet | Hide progress bar |
| -n, --line-number | Show line numbers in output |
Example
s3grep --pattern "timeout" --bucket my-bucket --prefix logs/2025/06/ --concurrent-tasks 12 --line-number
Testing
Integration tests use Localstack to mock S3. See CONTRIBUTING.md for details.
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
License
This project is licensed under the MIT License.
Acknowledgments
- Inspired by daily use of
grepand the need for cloud-native log search. - Built with Rust, aws-sdk-rust, and Localstack for testing.
Related Skills
qqbot-channel
347.2kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.1k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
347.2kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
Design
Campus Second-Hand Trading Platform \- General Design Document (v5.0 \- React Architecture \- Complete Final Version)1\. System Overall Design 1.1. Project Overview This project aims t
