Log Parser for Openclaw

A comprehensive parsing and analysis tool designed to extract actionable insights from Nginx, Apache, Syslog, and JSON application logs.

freeter226
v1.0.0
Mar 22, 2026
0
952
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install log-parser

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install log-parser using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Log Parser?

Log Parser is a robust technical utility within the Openclaw Skills ecosystem designed for DevOps engineers and security professionals. It automates the tedious task of manual log inspection by providing a unified interface to parse, filter, and analyze various log formats including web server access logs and system events.

This tool enables high-speed data extraction, allowing users to transform raw text files into structured JSON data. By leveraging this skill, teams can gain immediate visibility into system health, traffic patterns, and potential security threats without writing complex regex patterns from scratch.

Log Parser Use Cases

  • Security Operations: Monitor for unauthorized access by identifying suspicious IP addresses and repeated failed login attempts.
  • System Troubleshooting: Rapidly isolate application errors and system failures from large Syslog or JSON log files.
  • Performance Tuning: Analyze traffic peaks and slow requests by reviewing status codes and top-performing URLs.
  • Audit Compliance: Generate summary reports and statistics for access logs to maintain operational transparency.

How Log Parser Works

  1. Input Selection: The user points the tool to a specific log file using the --file flag.
  2. Auto-Detection: The skill analyzes the log structure to automatically identify the format (Nginx, Apache, Syslog, or JSON).
  3. Parsing Engine: It applies predefined schemas to extract critical fields such as timestamps, source IPs, HTTP status codes, and request URLs.
  4. Data Transformation: Based on the chosen action (parse, stats, filter, or top), the skill processes the extracted data.
  5. Output Generation: The tool returns a structured JSON payload containing the success status, parsed entry count, and the specific data requested.

Log Parser Setup

To integrate this tool into your Openclaw Skills workflow, ensure you have Python 3 installed and follow these steps:

# Navigate to your skills directory
cd skills/log-parser

# Run the parser against a sample log file
python3 scripts/log_parser.py parse --file /path/to/your/access.log

Log Parser Data Schema & Taxonomy

The Log Parser skill produces structured output to ensure compatibility with downstream automation tools.

Field Type Description
success boolean Indicates if the parsing operation completed
total integer Total number of lines processed
parsed integer Number of successfully parsed log entries
entries array List of extracted log objects containing IPs, URLs, and status codes
stats object Aggregated data including frequency of specific fields

Log Parser Advanced Features

  • Intelligent Format Auto-detection: Eliminates the need to manually specify log types for standard web and system logs.
  • Flexible Filtering: Chain filters by IP address and status codes to isolate specific incidents within Openclaw Skills.
  • Top-N Analysis: Built-in ranking system to identify the most frequent visitors or most accessed resources.
  • JSON Native Support: Seamlessly parses modern application logs formatted as JSON for modern microservices architectures.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins python3
Github Stars: 0
forks: 0

Featured*