Skip to content

tengdagg/Ailap

Repository files navigation

AILAP (AI Log Analysis Platform)

English | 中文

AILAP is a modern log analysis platform built with Go and Vue 3, designed to provide unified log querying, analysis, and AI-assisted diagnostics.

Image text

✨ Features

📊 Log Management

  • Multi-Source Support: Supports Loki (LogQL) and Elasticsearch (Lucene) & VictoriaLogs (LogsQL) data sources.
  • Structured Display: Automatically parse log information.
  • Advanced Filtering: Support fuzzy search and value filtering.

🤖 AI-Assisted Diagnostics

  • Intelligent Analysis: Integrates AI models for deep analysis of log content to quickly pinpoint root causes of anomalies.
  • Interactive Chat: Provides a ChatGPT-like interface for context-aware questions about specific logs.
  • Dynamic Avatar: The AI assistant's avatar automatically syncs with the currently configured default model's icon.

Image text

🚨 Smart Monitoring & Alerts

  • Task Management: Create and manage scheduled monitoring tasks using Cron expressions.
  • Multi-Channel Notifications: Support for Webhook and SMTP Email notifications.
  • Keyword Detection: Automatically trigger alerts based on log keywords (e.g., "error", "exception").

🌐 Internationalization

  • Multi-language Support: Switch seamlessly between English and Chinese (Simp).

🔌 Models & Data Sources

  • Model Management: Supports configuration for various LLM interfaces like OpenAI, Deepseek, Qwen, etc.
  • Data Source Configuration: Visual management of log data sources with connectivity testing.

🛠 Tech Stack

  • Frontend: Vue 3, Vite, Arco Design Vue, Pinia
  • Backend: Go (Gin), GORM (SQLite), Viper, Zap
  • Deployment: Docker Multi-stage Build

🚀 Quick Start

Prerequisites

  • Docker (Recommended)
  • Or Node.js 18+ & Go 1.21+

Docker Deployment (Recommended)

# Build the image
docker build -t ailap .

# Run the container (with data persistence)
docker run -d \
  -p 8080:8080 \
  -v $(pwd)/data:/app/data \
  --name ailap \
  ailap

Access the application at http://localhost:8080.

Local Development

Backend

cd backend
go mod tidy
go run ./cmd
# Default port: 8080

Frontend

cd frontend
npm install
npm run dev
# Access at http://localhost:5173

🔐 Default Credentials

  • Username: admin
  • Password: admin123

Can be overridden via AILAP_ADMIN_USER and AILAP_ADMIN_PASS environment variables during Docker startup.

About

Artificial intelligence log analysis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors