log-monitor-discord-alert

Detect silent cron log failures and send Discord webhook alerts.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/mattei2005/mgs-agent --skill log-monitor-discord-alert
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: log-monitor-discord-alert
Source: https://github.com/mattei2005/mgs-agent/tree/main/profiles/zeus-skills/ops/log-monitor-discord-alert
Command: npx skills add https://github.com/mattei2005/mgs-agent --skill log-monitor-discord-alert

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bash, jq, curl, systemctl, op, and includes references (resource) components.

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.

Frequently Asked Questions about log-monitor-discord-alert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I monitor cron log files for missing OK confirmations and detect silent failures?▼

You can monitor cron log files for silent failures by correlating START entries with missing OK confirmations within a configurable time window, triggering alerts when mismatches accumulate past a defined threshold.

Can I send bash log failure alerts to a Discord channel using webhooks?▼

Yes, you can send bash log failure alerts to Discord using webhook notifications, which deliver structured embeds with consistent fields, colors, and truncation-safe technical details directly to your channel.

How does anti-spam throttling work for Discord alerts triggered by recurring log errors?▼

Anti-spam throttling for Discord alerts works by suppressing repeated notifications during a cooling period using persisted JSON state, and automatically sends a green resolution message when failures stop.

What is the best way to scan systemd service logs for explicit error keywords like failed and timeout?▼

The best way to scan systemd service logs for explicit error keywords is using deterministic log parsing that flags recent lines containing terms like failed, fatal, error, and timeout within a specified time window.

Does this log monitoring approach support safe execution when run as a cron job?▼

Yes, this log monitoring approach supports safe cron-friendly execution by using a state JSON file persisted across runs, ensuring reliable polling without duplicate alerts or state corruption.

Do I need jq and curl to parse logs and send Discord webhook notifications?▼

Yes, you need jq for deterministic JSON log parsing and state management, and curl for sending webhook-based Discord embed alerts with truncation-safe payloads.