olegiv

Logwatch AI — AI skill for Claude Code

AI community

Logwatch AI Analyzer - An automated system that analyzes logwatch reports using Claude AI and sends summarized insights via Telegram channel.

How to install Logwatch AI

This entry records only its repository, not the path inside it, so there is no exact command to give. Open olegiv/logwatch-ai and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Logwatch AI does

Logwatch AI Analyzer - An automated system that analyzes logwatch reports using Claude AI and sends summarized insights via Telegram channel.

Alternatives in AI

  • Claude Skill Aso Appstore Screenshots — A Claude Code skill that generates high-converting App Store screenshots for your iOS app 1.2k ★
  • AI Investigator — An automated AI system (Python framework) designed to analyze any type of website content and generate structu 733 ★
  • Codebase Digest — 🗜️ Codebase-digest is your AI-friendly codebase packer and analyzer 375 ★

README

Logwatch AI Analyzer

[!WARNING] **This project has been superseded by [logwatch-ai-go](https://github.com/olegiv/logwatch-ai-go)** - a complete rewrite in Go with improved performance and simpler deployment.

This Node.js version is archived and no longer maintained.

An automated system that analyzes logwatch reports using Claude AI and sends summarized insights via Telegram bot.

Features

  • Daily automated logwatch analysis using Claude AI
  • Intelligent summarization of system logs
  • Critical issue detection and prioritization
  • Actionable recommendations
  • Telegram notifications with formatted reports
  • Historical trend analysis
  • SQLite database for storing analysis history
  • Comprehensive error handling and logging
  • Prompt caching for cost optimization (16-30% savings per analysis)

Requirements

  • Ubuntu 24.04.2 LTS (or similar Linux distribution)
  • Node.js 20 or higher
  • logwatch installed (apt-get install logwatch)
  • Cron for scheduled logwatch generation (see Cron Setup)
  • Claude API key (Anthropic)
  • Telegram Bot token and chat ID

Deployment Options

Option 1: Standalone Binary (No Node.js Required)

Build a standalone executable that includes Node.js runtime and all dependencies:

# Build binary
npm install
npm run build

# Deploy
scp dist/logwatch-ai-linux-x64 user@server:/opt/logwatch-ai/
scp dist/sql-wasm.wasm user@server:/opt/logwatch-ai/
scp .env user@server:/opt/logwatch-ai/

# Run on target server (no Node.js needed!)
./logwatch-ai-linux-x64

**Benefits:**

  • No Node.js installation required on target servers
  • Single executable file (~80-100MB)
  • Simplified deployment
  • Ideal for production servers

See **[Build Documentation](docs/BUILD.md)** for detailed instructions.

Option 2: Standard Node.js Installation

Traditional installation with Node.js runtime:

Quick Start

1. Clone or Download

cd /opt
git clone https://github.com/olegiv/logwatch-ai.git logwatch-ai
#