log-analysis

Analyze server logs with grep, awk, sed, sort, and uniq.

50|13|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/chaterm/terminal-skills --skill log-analysis-chaterm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: log-analysis
Source: https://github.com/chaterm/terminal-skills/tree/main/server/log-analysis
Command: npx skills add https://github.com/chaterm/terminal-skills --skill log-analysis-chaterm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you efficiently analyze and process server logs, enabling quicker identification of errors, performance bottlenecks, and security issues.

Core Features & Use Cases

  • Log Viewing & Filtering: Real-time and historical log inspection with powerful filtering by time, keywords, and patterns.
  • Text Processing: Utilize grep, awk, sed, sort, and uniq for in-depth log manipulation and summarization.
  • Nginx Log Analysis: Specific tools for analyzing Nginx access and error logs, including IP ranking, status code distribution, and slow request identification.
  • Real-time Monitoring: Employ tools like GoAccess for live log analysis and reporting.
  • Log Rotation: Understand and configure logrotate for effective log management.

Quick Start

Analyze the Nginx access log to find the top 20 most frequent IP addresses.

Frequently Asked Questions about log-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze Nginx access logs to find the most frequent IP addresses?

You can analyze Nginx access logs to find frequent IP addresses using text processing tools like awk to extract the IP field, combined with sort and uniq to rank occurrences. This Skill provides commands to identify the top 20 IPs efficiently.

What is the best way to filter server logs by time and keywords?

Filtering server logs by time and keywords is best done using pattern matching tools like grep and ripgrep. This Skill enables real-time and historical log inspection with powerful filtering to isolate specific events and errors.

Can I use GoAccess for real-time server log monitoring and reporting?

Yes, you can use GoAccess for real-time server log monitoring. This Skill explains how to employ GoAccess to generate live log analysis dashboards, providing immediate visual reporting of web server traffic.

How do I configure logrotate for effective server log management?

Configuring logrotate for server log management involves setting up rotation rules to archive and compress old logs. This Skill helps you understand and configure logrotate to prevent disk space exhaustion and maintain logs effectively.

How does awk and sed help with text manipulation during log analysis?

Awk and sed help with log analysis by extracting specific columns and modifying text patterns in log files. This Skill utilizes these tools for in-depth log manipulation, allowing you to summarize data and identify slow requests.

Why do I need to check server logs for performance bottlenecks and security issues?

Checking server logs is needed to identify error patterns, performance bottlenecks, and security threats within your infrastructure. This Skill helps process server logs efficiently, enabling quicker identification of anomalies and issues.