360 Secure SkillHub
360 安全技能中心

LogTail Smart Log Monitor & Analyzer

这是一款智能日志监控分析工具,核心功能包括实时多文件日志追踪、自定义噪音过滤、异常模式检测及时段日志摘要生成。适用于应用运维排查日志、实时监控错误场景,支持多种日志格式。用户通过代码配置日志路径、过滤规则后,可接收实时错误告警,还能生成含统计、Top错误、关联模式的结构化摘要,快速定位问题。

theshadowrose
theshadowrose
热度 87.03
最近更新 2026-05-11 17:30:16
分类:数据依赖:代码执行 / 读写文件应用场景:数据处理 / 报告撰写 / 调试排错

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add log-tail-sr
Metadata
name
LogTail Smart Log Monitor & Analyzer
description
Monitor log files in real-time. Filter noise, surface errors, summarize patterns, alert on anomalies. Makes logs readable.
author
@TheShadowRose
version
1.0.0
tags
["log-tail"]
license
MIT

LogTail Smart Log Monitor & Analyzer

Monitor log files in real-time. Filter noise, surface errors, summarize patterns, alert on anomalies. Makes logs readable.


Logs are noisy. LogTail finds the signal.

Usage

const { LogTail } = require('./src/log-tail');
const tail = new LogTail({
  files: ['./logs/app.log', './logs/error.log'],
  filters: {
    ignore: ['DEBUG', 'health_check'],
    highlight: ['ERROR', 'FATAL', 'timeout']
  }
});

tail.watch((entry) => {
  if (entry.severity === 'error') console.log('🔴', entry.message);
});

const summary = await tail.summarize({ period: '1h' });

Summary Output

📋 Log Summary — Last Hour

Total: 12,847 entries
Errors: 23 (0.18%)
Warnings: 156 (1.2%)

Top errors:
  1. "Connection timeout" — 12x (clustered 2:15-2:20 PM)
  2. "Rate limit exceeded" — 8x (spread)
  3. "File not found" — 3x

Pattern: Timeout spike correlates with backup job at 2:15 PM

Features

  • Real-time tailing with smart filtering
  • Pattern detection — recurring errors, time correlations
  • Noise reduction — configurable ignore patterns
  • Anomaly detection — "Error rate 3x normal"
  • Multi-file — multiple log files simultaneously
  • Format agnostic — JSON, plaintext, syslog, custom

⚠️ Disclaimer

This software is provided "AS IS", without warranty of any kind, express or implied.

USE AT YOUR OWN RISK.

  • The author(s) are NOT liable for any damages, losses, or consequences arising from the use or misuse of this software — including but not limited to financial loss, data loss, security breaches, business interruption, or any indirect/consequential damages.
  • This software does NOT constitute financial, legal, trading, or professional advice.
  • Users are solely responsible for evaluating whether this software is suitable for their use case, environment, and risk tolerance.
  • No guarantee is made regarding accuracy, reliability, completeness, or fitness for any particular purpose.
  • The author(s) are not responsible for how third parties use, modify, or distribute this software after purchase.

By downloading, installing, or using this software, you acknowledge that you have read this disclaimer and agree to use the software entirely at your own risk.

DATA DISCLAIMER: This software processes and stores data locally on your system. The author(s) are not responsible for data loss, corruption, or unauthorized access resulting from software bugs, system failures, or user error. Always maintain independent backups of important data. This software does not transmit data externally unless explicitly configured by the user.


Support & Links

🐛 Bug Reports TheShadowyRose@proton.me
☕ Ko-fi ko-fi.com/theshadowrose
🛒 Gumroad shadowyrose.gumroad.com
🐦 Twitter @TheShadowyRose
🐙 GitHub github.com/TheShadowRose
🧠 PromptBase promptbase.com/profile/shadowrose

Built with OpenClaw — thank you for making this possible.


🛠️ Need something custom? Custom OpenClaw agents & skills starting at $500. If you can describe it, I can build it. → Hire me on Fiverr