9bd17156e490e1b87da78efe3c04c29fab1c25ac
- Create UserService with CRUD operations - Implement ListUsers with pagination - Implement GetUser, CreateUser, UpdateUser, DeleteUser - Add ResetUserPassword for admin password resets - Create UserHandler with HTTP endpoints - Update router to wire up all handlers and middleware - Add authentication middleware to protected routes - Add admin-only middleware to user management routes Closes #6 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%