This is a CLI (Command Line Interface) tool developed in Rust for log analysis. It allows filtering logs by level, date, and performing keyword searches. The application is designed to be simple, efficient, and fast, leveraging Rust's compiler optimizations.
- Level Filtering: Filter logs based on their level (e.g., ERROR, WARNING, INFO).
- Keyword Search: Search for specific words or phrases in the logs.
- Date Filtering: Filter logs by a specific date or date range.
- Performance: The application is optimized to handle large log datasets efficiently.
Make sure you have Rust installed on your machine. If you don't have it yet, you can install it from the official Rust website.
- Clone this repository to your local machine:
git clone https://github.com/your-username/log_analyzer.git
- Navigate to the project directory:
cd log_analyzer
- Build the project with the following command:
cargo build --release
- The binary will be generated in target/release/log_analyzer. You can move this binary to any directory in your PATH for easier access.
cargo install --path .
- To search
log_analyzer --log-path <-path> analyze <-k> <-s> <-e> <-l>
- To an overview
log_analyzer --log-path <-path> overview
##Next updates
- Read a json file.
- Choose the output (Console,csv,json,.log)