A simple and fast CLI tool to search for keywords in log files, written in Rust.
Log Raider is a basic but efficient log reader built with Rust. It uses:
BufReader
for memory-efficient file readingclap
for command-line argument parsinganyhow
for robust error handlingassert_cmd
for integration testing
Perfect for DevOps and SREs who need lightweight tools for log inspection or as a starting point for building more advanced log parsers.
- 🔍 Search for any keyword in a log file
- 🆚 Optional case-insensitive search (
--ignore-case
) - 📋 Line number output
- 🧪 Integration test support via
assert_cmd
git clone https://github.com/imadenugraha/Log-Raider.git
cd Log-Raider
cargo build --release
./target/release/log_raider --file-path "text.log" --keyword "GET"
--ignore-case
cargo test
Line 1: 10.1.1.1 - [2025-05-18] GET /me? - 200 - 124
Found 1 matches for keyword: GET
Execution time: 0ms
This project is licensed under the MIT License.