Skip to content

Sagetrash/Ai-log-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ› ๏ธ Ai-log-analyzer (WIP)

Ai-log-analyzer is a developer-focused tool for extracting insights, summaries, and anomalies from application logs using AI. It combines a Python backend with a simple HTML web interface.

Note: This project is under active development. Features and CLI commands are subject to change.


โœจ Features

  • Summarization: Turn massive log files into human-readable reports.
  • Natural Language Search: Query logs using plain English (e.g., "Find all 500 errors from last night").
  • Anomaly Detection: Automatically flag unusual patterns or spikes.
  • Extensible: Support for various LLM providers (OpenAI, Anthropic) or local models.

๐Ÿš€ Quickstart

1. Installation

git clone [https://github.com/Sagetrash/Ai-log-analyzer.git](https://github.com/Sagetrash/Ai-log-analyzer.git)
cd Ai-log-analyzer
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install -r requirements.txt
  1. Configuration

Create a .env file in the root directory:

AI_PROVIDER=openai
AI_API_KEY=your_api_key_here
  1. Usage

CLI Mode:

python -m ai_log_analyzer.cli analyze --input logs/app.log

Web UI: Bash

python -m ai_log_analyzer.webapp
# Navigate to http://localhost:5000
๐Ÿ“‚ Project Structure

    ai_log_analyzer/ - Core logic and AI connectors.

    web/ - UI templates and assets.

    tests/ - Unit and integration tests.

๐Ÿ”’ Security & Privacy

Logs often contain sensitive data. Before processing:

Use local LLMs for private/sensitive data.

Ensure PII is redacted before sending to third-party APIs.

๐Ÿค Contributing

Feel free to open issues or submit pull requests.

Maintainer: Sagetrash


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published