AI Log Analyzer
Blazing-fast log viewer for 10GB+ files with AI-powered search.
Open multi-gigabyte logs without freezing VS Code. Search using plain English — AI generates the regex for you.

✨ Features
- Opens 10GB+ files instantly — Rust backend with memory-mapped I/O
- Zero lag scrolling — Virtual scroll renders only visible lines
- Minimal memory usage — File never loaded into JS heap
🤖 AI-Powered Search
- Natural language to regex — Type "show errors with timeout" → get
ERROR.*timeout
- Click-to-analyze — Click any line in AI mode for instant explanation
- Multiple providers — OpenAI, Groq (free!), xAI Grok, Ollama (local)
🔧 Core Features
- Follow mode — Real-time tail -f in the editor
- Smart filtering — Filter by log level, keep original line numbers
- Regex search — Fast pattern matching across gigabytes
- Go to line — Jump to any line instantly (Ctrl+G)
💎 Free vs Pro
| Feature |
Free |
Pro |
| File size limit |
200 MB |
Unlimited (10GB+) |
| AI searches per day |
5 |
Unlimited |
| Custom AI Instructions |
❌ |
✅ |
| All other features |
✅ |
✅ |
Upgrade to Pro
Click the ⭐ Upgrade button in the status bar, or run command:
AI Log Analyzer: Upgrade to Pro — Purchase a license
AI Log Analyzer: Activate License — Enter your license key
Pricing:
- Monthly Subscription — Cancel anytime
- Lifetime License — One-time purchase, forever yours
Get Pro →
🏗 Architecture
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
│ VS Code UI │────▶│ TypeScript │────▶│ Rust Binary │
│ (Webview) │◀────│ Extension │◀────│ (log-core) │
└─────────────────┘ └──────────────────┘ └─────────────────┘
HTML/JS │ mmap/fast I/O
│
▼
┌──────────────────┐
│ LLM Provider │
│ (AI SDK) │
└──────────────────┘
Why Rust?
- Memory-mapped I/O — Opens files instantly regardless of size
- Zero-copy operations — No unnecessary data copying
- No GC pauses — Consistent performance
Why Vercel AI SDK?
- One interface, many providers — Switch between OpenAI, Groq, Anthropic with one config change
- Streaming support — Ready for future streaming responses
- Type-safe — Full TypeScript support
🤖 AI Setup
- Click the AI Off button in the toolbar to enable AI mode
- Click ⚙️ to open settings
- Enter your API key and select a model
Settings
| Setting |
Description |
Availability |
| API Key |
Your LLM provider API key (stored securely) |
Free & Pro |
| Model |
Model name (e.g., gpt-4o-mini, llama-3.1-8b-instant) |
Free & Pro |
| Base URL |
Custom endpoint for non-OpenAI providers |
Free & Pro |
| Custom Instructions |
Additional context for AI — describe your log format |
Pro only |
| Private Mode |
Don't send log samples to AI |
Free & Pro |
Private Mode
By default, the extension sends 20 random log lines to the AI for context. If your logs contain sensitive data:
- ✅ Enable Private Mode checkbox
- 📝 Add Custom Instructions describing your log format (Pro only):
My logs use format: [TIMESTAMP] [LEVEL] [SERVICE] message
Services: auth-service, payment-api, user-service
Levels: DEBUG, INFO, WARN, ERROR, FATAL
Supported Providers
| Provider |
Base URL |
Model (example) |
Price |
| OpenAI |
(empty) |
gpt-4o-mini |
$ |
| Groq |
https://api.groq.com/openai/v1 |
llama-3.1-8b-instant |
Free* |
| xAI Grok |
https://api.x.ai/v1 |
grok-2-mini |
$ |
| OpenRouter |
https://openrouter.ai/api/v1 |
openai/gpt-4o-mini |
$ |
| Ollama |
http://localhost:11434/v1 |
llama3 |
Free |
*Groq is free with rate limits
⌨️ Keyboard Shortcuts
| Shortcut |
Action |
Ctrl/Cmd + F |
Focus search |
Ctrl/Cmd + G |
Go to line |
Enter |
Next search result |
Arrow Up/Down |
Navigate lines |
Page Up/Down |
Scroll by page |
Home/End |
Jump to start/end |
Ctrl/Cmd + C |
Copy selected line |
Escape |
Exit AI mode / close search |
📦 Development
Prerequisites
- Node.js >= 18
- Rust >= 1.70
- VS Code >= 1.85
Build
cd extension
npm install
npm run build:rust # Build Rust binary
npm run compile # Bundle with esbuild
Debug
- Open in VS Code
- Press
F5 to launch Extension Development Host
- Open any
.log file
🔑 License Management
Commands
| Command |
Description |
AI Log Analyzer: Activate License |
Enter your Pro license key |
AI Log Analyzer: Upgrade to Pro |
View upgrade options |
AI Log Analyzer: Manage Subscription |
Open billing portal |
AI Log Analyzer: Deactivate License |
Remove license from this device |
Moving to a new device
- On old device: Run
AI Log Analyzer: Deactivate License (optional, frees activation slot)
- On new device: Run
AI Log Analyzer: Activate License and enter your key
📄 License
MIT
| |