c9b6c5bf74d3b5a6d4b1e2e36cfb70125bfde49d
- Create LogsService with VictoriaLogs client integration - Implement QueryLogs with role-based limits - Implement StatsQuery for time-series data - Implement GetFacets for field facets - Implement TailLogs for real-time streaming - Implement ExportLogs with format support - Add query validation and safety checks - Add role-based rate limiting (default/max limits per role) - Auto-calculate appropriate time range and step Closes #12 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
VictoriaLogs Manager
A comprehensive web application for managing VictoriaLogs with alerting, advanced reporting, and malicious pattern detection.
Features
- Log Exploration: Query and search logs using LogsQL with visual query builder
- Alert Management: Create and manage vmalert rules with YAML editor
- Pattern Detection: Find malicious patterns using regex and ML-based anomaly detection
- Reports & Dashboards: Fancy visualizations and custom reports
- Role-Based Access: Admin, Editor, Analyst, and Viewer roles
Tech Stack
- Backend: Go (Gin framework)
- Frontend: React + TypeScript + Vite
- Database: PostgreSQL
- ML Service: Python (FastAPI + scikit-learn)
- Deployment: Docker Compose
Project Structure
victorialogs-manager/
├── backend/ # Go API server
├── frontend/ # React SPA
├── ml-service/ # Python ML service
└── docker-compose.yml
Getting Started
Prerequisites
- Go 1.21+
- Node.js 18+
- Python 3.11+
- Docker & Docker Compose
Quick Start with Docker
# Copy environment file
cp .env.example .env
# Edit .env with your configuration
nano .env
# Start all services
docker-compose up -d
The application will be available at:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8080
- VictoriaLogs: http://localhost:9428
Development Setup
Backend
cd backend
go mod download
go run cmd/server/main.go
Frontend
cd frontend
npm install
npm run dev
ML Service
cd ml-service
pip install -r requirements.txt
uvicorn app.main:app --reload
Configuration
See .env.example for all available configuration options.
Documentation
- API Documentation (coming soon)
- User Guide (coming soon)
- Deployment Guide (coming soon)
License
MIT
Description
A comprehensive web application for managing VictoriaLogs with alerting, advanced reporting, and malicious pattern detection
Languages
Go
71.6%
TypeScript
17.5%
PLpgSQL
4.5%
Python
2.8%
Dockerfile
1.7%
Other
1.9%