Skip to content

mexirica/log_analyzer

Repository files navigation

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.

Features

  • 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.

Installation

Prerequisites

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.

Installation Steps

  1. Clone this repository to your local machine:
   git clone https://github.com/your-username/log_analyzer.git
  1. Navigate to the project directory:
   cd log_analyzer
  1. Build the project with the following command:
    cargo build --release
  1. The binary will be generated in target/release/log_analyzer. You can move this binary to any directory in your PATH for easier access.

How to install

  cargo install --path .

How to use

  1. To search
log_analyzer --log-path <-path> analyze <-k> <-s> <-e> <-l>
  1. To an overview
log_analyzer --log-path <-path> overview

Examples

Captura de Tela 2024-11-15 às 18 24 24 Captura de Tela 2024-11-15 às 18 24 03

##Next updates

  1. Read a json file.
  2. Choose the output (Console,csv,json,.log)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages