Documentation

AI Log Analyst for Plesk Documentation

Everything you need to install AI Log Analyst, configure BYOK AI providers, manage multi-tenant reseller caps, and automate alerts on Linux Plesk Obsidian.

1. Requirements

Before installing AI Log Analyst, confirm your server meets these requirements:

  • Control panel: Plesk Obsidian 18.0 or newer on Linux (Ubuntu, Debian, AlmaLinux, Rocky Linux, or CloudLinux). Windows Plesk is not supported.
  • Runtime: PHP 7.4+ or PHP 8.x (bundled Plesk panel PHP runtime is supported).
  • Network (only if enabling AI analysis): Outbound HTTPS (port 443) from the Plesk server to your chosen AI provider endpoint (Google Gemini, OpenAI, or Anthropic), or via your configured Plesk HTTP proxy. Local log folding and file-change detection require no outbound access.

2. Installation

  1. Log in to your Plesk Obsidian server as an administrator.
  2. Go to Extensions → Extensions Catalog and search for AI Log Analyst.
  3. Click Get It Free / Install to deploy the extension onto your server.
  4. Once installed, open AI Log Analyst from the left navigation sidebar or the Extensions list.

3. Quick Start (60 Seconds)

Step A: Run a free local scan on any website

Open the extension, choose any domain from the Server Overview, and click Scan now. AI Log Analyst reads Apache, nginx, and PHP logs incrementally via byte offsets and correlates files modified in the last 24 hours, producing deduplicated Application Incidents and Security Alerts without sending any data off your server.

Step B: Get an API key (optional, for AI root-cause fixes)

Create a Bring Your Own Key (BYOK) credential from one of the three supported providers:

Step C: Configure provider, verify models, and enable GDPR consent

  1. In Settings → AI Provider, choose Google Gemini, OpenAI, or Anthropic Claude and paste your API key (stored encrypted on your server with AES-256-GCM).
  2. Click Load available models to query your provider account live and verify connectivity.
  3. Select the Recommended model from the dropdown.
  4. Review the outbound data summary, tick the explicit GDPR consent checkbox, and click Save.

4. Multi-Tenant Guide (Admins & Resellers)

Customer and reseller access is switched off by default. Server administrators have full control over who can run AI diagnostics and whose API key is billed:

  • Enabling customer / reseller access: Open Multi-Tenant Access and enable access per reseller or customer account.
  • Own Key Only: The reseller or customer enters their own API key inside their isolated account scope. Keys are encrypted per account using AES-256-GCM and are never shared with other tenants.
  • Server Key Allowed: Authorised accounts can use the server administrator's shared key, bounded by strict per-account monthly AI call caps.
  • Monthly caps & CSV usage reports: Set a monthly call ceiling per account, rely on automatic analysis caching whenever log patterns have not changed, and download monthly token and call usage as a CSV file for internal recharge or client billing.

5. Scheduled Background Scans & Alerts

Instead of scanning on visitor page views, AI Log Analyst runs only on demand or via lightweight scheduled background tasks:

  • Opting websites into hourly scans: Enable scheduled scans per domain in the Server Overview or Domain Settings. Incremental byte-offset reading with non-blocking locks ensures busy sites are never stalled.
  • Alert channels: Configure Email notifications or paste incoming webhook URLs for Slack, Microsoft Teams, or Discord.
  • State-change alerts (High / Critical): Alerts trigger only when a new High or Critical incident appears or changes state, preventing repetitive hourly noise.

6. Ignore Rules, Cooldowns & Kill Switch

  • Ignore rules: Mute known harmless warnings or legacy cron notices per domain or server-wide so incident lists stay focused on real failures.
  • Cooldowns & caching: Repeated identical error patterns reuse the cached AI explanation within your configured cooldown window so duplicate bursts do not trigger extra API calls.
  • Retention & cleanup: Set local scan record retention between 7 and 365 days and clear cached scan history at any time.
  • Global AI Kill Switch: Flip one master toggle to immediately stop all outbound AI calls across every account while keeping local log folding active.
Chat with us