log-analysis

Analyze Nginx server logs for traffic, status codes, and performance metrics.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

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

Core Features & Use Cases

  • Log Viewing: Real-time and historical log inspection using standard tools like tail, less, and journalctl.
  • Text Searching: Powerful filtering with grep and ripgrep using basic and regular expressions.
  • Text Processing: Manipulate log data with awk and sed for extraction and transformation.
  • Nginx Analysis: Specific tools for analyzing Nginx access and error logs, including traffic, status codes, and response times.
  • Log Rotation: Guidance on configuring and managing log rotation with logrotate.
  • Use Case: Quickly find all "error" messages from the last hour in your application logs and identify the top 5 IP addresses that triggered 404 errors on your web server.

Quick Start

Analyze your Nginx access logs to find the top 20 IP addresses with the most requests.

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 top IP addresses with the most requests?

To analyze Nginx access logs for top IP addresses, you can use text processing tools like awk to extract the client IP field and sort the results to count request frequencies. This approach helps identify high-traffic sources efficiently.

What is the best way to search for specific error messages in server logs?

The best way to search for specific error messages in server logs is using grep or ripgrep with regular expressions. These tools allow you to filter large log files quickly to pinpoint exact error strings or patterns across your server data.

Can I extract and manipulate specific fields from server logs using awk and sed?

Yes, you can extract and manipulate specific fields from server logs using awk and sed. Awk handles structured data extraction by column or delimiter, while sed transforms text patterns, allowing you to isolate traffic data or status codes.

How do I configure log rotation for Nginx server logs?

To configure log rotation for Nginx server logs, you use the logrotate utility. It manages automatic compression, removal, and rotation of log files, preventing disk space exhaustion and ensuring continuous log analysis without manual intervention.

Does log analysis with tail and journalctl support real-time troubleshooting?

Yes, log analysis with tail and journalctl supports real-time troubleshooting. By streaming logs live, you can immediately view active server errors or Nginx status codes as they occur, which is crucial for rapid issue identification and diagnosis.