What problem does it solve?
Investigating production incidents by dumping raw logs floods the context window and buries the signal. This Skill enforces a statistics-first workflow against VictoriaLogs so you get error rates, top streams, and error patterns before ever looking at individual log lines.
Core Features & Use Cases
- Server-Side Statistics: Run LogsQL aggregation queries to get total counts, error rates, top streams, and normalized error patterns without transferring raw logs.
- Strategic Log Sampling: Sample only errors, warnings, or logs around a specific incident timestamp, hard-capped at 50 entries to protect context.
- Field Discovery: List available fields and their values to build targeted queries against unknown log schemas.
- Use Case: An alert fires for elevated 5xx errors on the payments service. Run get_statistics.py to confirm the error rate, sample_logs.py with the errors_only strategy to see representative failures, then a targeted LogsQL query grouped by path to pinpoint the failing endpoint.
Quick Start
Ask the agent to investigate recent errors in VictoriaLogs by starting with log statistics for the affected service over the last hour.