{"skill":{"slug":"skylv-log-aggregation","displayName":"Skylv Log Aggregation","summary":"Aggregate and search logs from all your services in one place. Find errors, spot anomalies, debug faster — no SSH into individual servers.","description":"---\ndescription: Aggregate and search logs from all your services in one place. Find errors, spot anomalies, debug faster — no SSH into individual servers.\nkeywords: log aggregation, log analysis, log search, centralized logging, error tracking, debugging, monitoring\nname: log-aggregation\ntriggers: logs, log search, error logs, debug logs, log analysis, centralized logs, find in logs\n---\n\n# log-aggregation\n\n> All your logs in one place. Search across services, find errors instantly, spot anomalies before they become outages — no SSH needed.\n\n## What It Does\n\n- **Collect logs** — From files, stdout, syslog, Docker, cloud services\n- **Search** — Full-text search with filters and time ranges\n- **Parse** — Auto-detect formats, extract fields (JSON, Apache, custom)\n- **Aggregate** — Group by service, level, time bucket\n- **Alert** — Trigger on error rate spikes, specific patterns\n- **Export** — To files, SIEM systems, or dashboards\n\n---\n\n## Quick Start\n\n```bash\n# 1. Collect logs from your app\ncollect logs from /var/log/myapp/*.log\n\n# 2. Search for errors\nsearch error logs from last hour\n\n# 3. Find specific pattern\nsearch logs containing \"payment failed\" from today\n\n# 4. Check error rate\nget error count per minute from last 30 minutes\n```\n\n---\n\n## Common Use Cases\n\n### 🐛 Debug Production Issue\n```bash\n# User reported error at 2:30 PM\nsearch logs containing \"user_id=12345\" from 2:00 PM to 2:45 PM\n\n# Find the stack trace\nsearch logs containing \"Exception\" after \"user_id=12345\"\n```\n\n### 🚨 Monitor Error Spikes\n```bash\n# Check error rate\nget error count per minute from last hour\n\n# Set up alert\nalert when error rate exceeds 10 per minute\n\n# Alert on specific pattern\nalert when logs contain \"OutOfMemoryError\"\n```\n\n### 📊 Analyze Performance\n```bash\n# Find slow requests\nsearch logs containing \"duration > 1000ms\" from today\n\n# Group by endpoint\naggregate logs by request_path calculate avg(duration)\n```\n\n### 🔍 Security Audit\n```bash\n# Find failed logins\nsearch logs containing \"login failed\" from last 7 days\n\n# Check for suspicious patterns\nsearch logs containing \"SELECT *\" or \"DROP TABLE\" from last 24 hours\n```\n\n---\n\n## All Commands\n\n| Command | Purpose |\n|---------|---------|\n| `collect logs from <path>` | Ingest log files |\n| `search logs <query>` | Full-text search |\n| `get error count` | Count errors by time |\n| `aggregate logs by <field>` | Group and summarize |\n| `alert when <condition>` | Create alert rule |\n| `export logs to <file>` | Download results |\n| `parse logs as <format>` | Set parser format |\n| `tail logs from <service>` | Live log streaming |\n\n---\n\n## Supported Log Sources\n\n**Files**: `/var/log/*.log`, rotating logs, compressed archives\n\n**Docker**: Container stdout/stderr\n\n**Cloud**: AWS CloudWatch, GCP Logging, Azure Monitor\n\n**Syslog**: Local and remote syslog\n\n**Applications**: Node.js, Python, Java, Go loggers\n\n---\n\n## Requirements\n\n- Node.js 18+\n- Optional: Elasticsearch or Loki for large-scale storage\n- Optional: Grafana for visualization\n","tags":{"latest":"1.0.1"},"stats":{"comments":0,"downloads":378,"installsAllTime":1,"installsCurrent":1,"stars":0,"versions":2},"createdAt":1777776544770,"updatedAt":1778492833926},"latestVersion":{"version":"1.0.1","createdAt":1777851256408,"changelog":"- Expanded and modernized the skill documentation for clarity and quick onboarding.\n- Added detailed command usage examples for faster troubleshooting and common scenarios.\n- Updated feature descriptions to highlight log collection, search, aggregation, and alerting across multiple sources.\n- Improved formatting and structure, including a command reference table and clear use case sections.\n- Added information about supported integrations (Docker, cloud, syslog, major loggers) and optional dependencies.","license":"MIT-0"},"metadata":null,"owner":{"handle":"sky-lv","userId":"s17fgkeb63szvtadtmm753m0gd84e4vz","displayName":"SKY-lv","image":"https://avatars.githubusercontent.com/u/259750852?v=4"},"moderation":{"isSuspicious":false,"isMalwareBlocked":false,"verdict":"clean","reasonCodes":["review.llm_review"],"summary":"Review: review.llm_review","engineVersion":"v2.4.24","updatedAt":1780090738002}}