log-monitor-discord-alert

Community

Detect log failures and alert via Discord.

Authormattei2005
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill reduces time-to-detection for silent log-based failures by watching for missing OK markers and emitting Discord alerts when thresholds are exceeded.

Core Features & Use Cases

  • Missing START/OK detection: Detects cases where a log line contains a START marker without a matching OK line in a configurable time window.
  • Explicit error pattern scanning: Flags recent lines containing common failure keywords such as rejected, failed, Authentication failed, fatal, error, and timeout.
  • Anti-spam and auto-recovery: Suppresses repeated alerts for a cooling period and sends a green resolution message when the failures stop.
  • Discord webhook embedded reporting: Sends structured Discord embeds with consistent fields, colors, and a truncation-safe technical details section.
  • Operational suitability for cron polling: Designed to work with cron-based polling patterns and supports a state JSON file persisted across runs.

Quick Start

Use the log-monitor-discord-alert skill to monitor a cron-driven log file for START/OK mismatches and receive Discord alerts when failures accumulate past the configured threshold.

Dependency Matrix

Required Modules

bashjqcurlsystemctlop

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: log-monitor-discord-alert
Download link: https://github.com/mattei2005/mgs-agent/archive/main.zip#log-monitor-discord-alert

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.