AI Agent Hub
Back to skills
Log Analyzer icon

Log Analyzer

IT Ops & Security Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_8509461a/log-analyzer-new by following the guide at https://skillhub.cn/install/skillhub.md.

About this skill

Problem

Debugging production incidents often stalls when logs are too large and inconsistent. nginx, Apache, application, and system logs use different formats, and manual grep gives isolated lines without error distribution, latency percentiles, slow requests, or suspicious access patterns. This skill turns raw logs into structured analysis for faster diagnosis, performance review, and security checks.

How It Works

It parses Combined / JSON, Common / Combined, Syslog, and custom regex formats, then reports four metric groups:
- Errors: error types, trends, stack extraction, and top frequent errors.
- Performance: response-time distribution, P50/P90/P95/P99, slow requests, throughput, and peak windows.
- Traffic: PV/UV, top URLs, status-code distribution, User-Agent, and IP geolocation.
- Security: SQL injection, XSS, brute-force patterns, and IP blacklist suggestions.
Output can be rendered as text, json, or html, and can feed ELK, Grafana, DingTalk/Feishu webhooks, or CI/CD checks.

Limits And Notes

Large files should be sliced first or analyzed in streaming mode. Run it cautiously in production to avoid extra load. Passwords and tokens are masked, but full logs still need careful handling. Generated HTML reports should be cleaned up regularly.

Use Cases

  • Diagnose a surge in 5xx errors by reviewing nginx error trends, top errors, and stack traces.
  • Analyze slow requests and P95 latency to identify peak windows and throughput bottlenecks.
  • Inspect access logs for SQL injection, XSS, and brute-force patterns.
  • Export JSON or HTML log reports for incident review and archival.

Best For

  • SREs handling production incidents who need to locate errors and slow requests in nginx and app logs quickly.
  • Backend engineers tuning performance who need P95/P99, slow requests, and peak-window analysis.
  • Ops staff focused on application security who need to detect injection, XSS, and brute-force activity.
  • Team leads preparing incident reviews who need exportable JSON or HTML log reports.