Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
alphaonedev avatar

Log Analysis

  • 52 installs
  • 6 repo stars
  • Updated March 13, 2026
  • alphaonedev/openclaw-graph

log-analysis is a Claude skill that teaches an agent to analyze system and application logs to detect anomalies and security threats for blue-team operations.

About

This skill is a reference for analyzing system and application logs to detect anomalies and security threats in blue-team operations. It documents anomaly detection, signature matching for threats like SQL injection, parsing syslog and Apache formats, and generating severity-ranked reports. A developer uses it during forensic investigations, real-time monitoring, or post-incident security reviews.

  • Reference card for analyzing system and application logs for security threats
  • Covers anomaly detection, signature matching, and multi-format log parsing (syslog, Apache)
  • Includes CLI scan commands, API payloads, and ELK/Splunk/SIEM integration notes

Log Analysis by the numbers

  • 52 all-time installs (skills.sh)
  • Ranked #1,300 of 2,203 Security skills by installs in the Skillselion catalog
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

log-analysis capabilities & compatibility

Free skill; API-based analysis needs LOG_ANALYSIS_API_KEY set as an env var

Capabilities
log analysis · anomaly detection · threat detection · incident response
Works with
splunk · elasticsearch
Use cases
security audit · data analysis
From the docs

What log-analysis says it does

This skill analyzes system and application logs to identify anomalies, security threats, and patterns indicative of breaches, supporting blue-team operations by providing actionable insights for incid
SKILL.md
Identify threats like SQL injection attempts or malware indicators via signature matching.
SKILL.md
Integrate with tools like ELK Stack or Splunk by streaming logs via API.
SKILL.md
npx skills add https://github.com/alphaonedev/openclaw-graph --skill log-analysis

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs52
repo stars6
Last updatedMarch 13, 2026
Repositoryalphaonedev/openclaw-graph

What it does

Reference for an agent to analyze logs for security anomalies and threats and feed results into a SIEM.

Who is it for?

Forensic investigations, real-time security monitoring, and post-incident log review

Skip if: Non-security log use cases like pure performance profiling without threat detection

When should I use this skill?

Logs show unusual activity like repeated failed logins or unexpected traffic, or during a security audit

By the numbers

  • --threshold 0.8 sets detection sensitivity
  • example flags Failed login with count 5 as high threat

Files

SKILL.mdMarkdownGitHub ↗

log-analysis

Purpose

This skill analyzes system and application logs to identify anomalies, security threats, and patterns indicative of breaches, supporting blue-team operations by providing actionable insights for incident response.

When to Use

Use this skill during forensic investigations, real-time monitoring, or post-incident reviews. Apply it when logs show unusual activity, such as repeated failed logins or unexpected network traffic, or for routine security audits in environments like cloud servers or on-premise systems.

Key Capabilities

  • Detect anomalies using machine learning-based pattern recognition on log data.
  • Identify threats like SQL injection attempts or malware indicators via signature matching.
  • Parse multiple log formats (e.g., syslog, Apache access logs) and extract metadata for correlation.
  • Generate reports with severity levels and recommendations for mitigation.
  • Support for filtering logs by time, IP, or user ID to narrow down investigations.

Usage Patterns

Invoke this skill via CLI for quick analysis or integrate it into scripts for automated workflows. Always provide log input paths or streams, and specify analysis parameters. For example, pipe logs from a file or API, then apply filters before running detection. Use environment variables for authentication, like $LOG_ANALYSIS_API_KEY, to secure API calls. Ensure logs are in plain text or JSON format for optimal parsing.

Common Commands/API

Use the CLI tool with commands like log-analysis scan for basic operations. For API integration, call endpoints like POST /api/v1/logs/analyze with a JSON payload.

  • CLI Example: Scan a local file for threats:
  log-analysis scan --file /var/log/syslog --anomaly true --output report.json

This flags anomalies and saves results to a file.

  • API Example: Send logs for analysis:
  curl -X POST https://api.openclaw.com/api/v1/logs/analyze \
  -H "Authorization: Bearer $LOG_ANALYSIS_API_KEY" \
  -d '{"logs": [{"line": "ERROR: Unauthorized access"}], "filters": {"ip": "192.168.1.1"}}'

This analyzes specified logs and returns JSON with detected threats.

  • Common Flags: --file <path> for input, --anomaly for ML-based detection, --threshold 0.8 for sensitivity level.
  • Config Format: Use JSON for custom rules, e.g.:
  {
    "rules": [
      {"pattern": "Failed login", "severity": "high"}
    ]
  }

Load via --config config.json.

Integration Notes

Integrate with tools like ELK Stack or Splunk by streaming logs via API. Set $LOG_ANALYSIS_API_KEY as an environment variable for authentication. For example, in a Python script, import the SDK and authenticate:

  import log_analysis_sdk
  client = log_analysis_sdk.Client(api_key=os.environ['LOG_ANALYSIS_API_KEY'])
  response = client.analyze(logs_data)

Handle webhooks for real-time alerts by registering a callback URL. Ensure compatibility by matching log formats; convert non-standard logs using tools like jq.

Error Handling

Check for errors like invalid log formats or authentication failures. Use try-catch blocks in scripts:

  try:
      result = log_analysis.scan('--file invalid.log')
  except FileNotFoundError:
      print("Error: Log file not found. Verify path and permissions.")

Common errors include 401 Unauthorized (missing $LOG_ANALYSIS_API_KEY) or 400 Bad Request (malformed JSON). Log errors with timestamps and retry transient issues up to 3 times with exponential backoff. Validate inputs before commands, e.g., check if files exist using os.path.exists().

Concrete Usage Examples

1. Detect anomalies in server logs: Run log-analysis scan --file /var/log/auth.log --anomaly true to identify potential brute-force attacks. Review the output JSON for entries like {"event": "Failed login", "count": 5, "threat": "high"}, then correlate with firewall logs for further investigation.

2. Integrate with a monitoring script: In a Bash script, fetch logs from a remote server and analyze:

   logs=$(curl http://server/logs.txt)
   echo "$logs" | log-analysis scan --stream --threshold 0.7

This detects threats in real-time streams, outputting alerts for anomalies like unusual user activity, and pipes results to a SIEM for automated response.

Graph Relationships

  • Related to: forensics (via shared tags for log parsing), security (for threat detection overlap), blue-team cluster (as a core component for operations).
  • Links: Connects to skills like "incident-response" for follow-up actions and "network-monitoring" for correlated data analysis.

Related skills

FAQ

What log formats can this skill parse?

It parses multiple formats including syslog and Apache access logs, extracting metadata for correlation.

How does it detect threats?

It uses machine-learning-based anomaly detection plus signature matching for indicators like SQL injection attempts or malware.

Securityauditappsec

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.