This project is not covered by Drupal’s security advisory policy.
Tired of spending hours debugging Drupal errors? AI Watchdog Analyst connects your
Watchdog log list to an AI chat provider and delivers instant, detailed solutions —
including root cause analysis, code examples, and automatic issue queue lookups for
contrib modules — directly in your Drupal admin.
Features
- One-click analysis: An "🤖 Analyze" button appears on Warning
and Error entries in the Watchdog log list (/admin/reports/dblog).
Click it to open a modal dialog with an AI-generated solution. - Detail page integration: An "Analyze with AI" button is also
available on individual log event pages. - Contrib module detection: Automatically detects if the error
originates from a contrib module and enriches the AI prompt with drupal.org issue
queue context — including links to known issues, available patches, and fixed
versions. - Markdown rendering: AI responses are rendered with full
formatting — headers, code blocks, and lists. - Multilingual: The AI responds in the current Drupal site
language. - Caching: Analysis results are cached for 24 hours to avoid
redundant API calls. - Configurable system prompt: Customize the AI expert persona
and instructions via the admin UI.
Post-Installation
- Install and configure the AI
module with at least one chat provider (e.g. OpenAI, Azure OpenAI, Ollama). - Go to /admin/config/ai/watchdog-analyst to optionally select
a specific provider/model and customize the system prompt. - Navigate to /admin/reports/dblog. Warning and Error entries
will now have an "🤖 Analyze" button in the "AI Solution" column. - Click the button to open a modal with the AI-generated analysis.
No content types, text formats, or additional configuration are required beyond
setting up an AI provider.
Additional Requirements
- AI module (^1.0) — provides
the provider plugin system. At least one chat-capable provider must be configured. - league/commonmark
— for rendering markdown AI responses as HTML. Installed automatically via
Composer. - Drupal core Database Logging module (dblog) must be
enabled.
Recommended modules/libraries
- Any AI provider sub-module compatible with the AI module
(e.g.ai_provider_openai,ai_provider_azure,
ai_provider_ollama) — choose based on your infrastructure and
privacy requirements.
Supporting this Module
This module is maintained on a volunteer basis. If you find it useful, the best
ways to support it are:
- Report bugs and contribute patches in the
issue queue. - Leave a review on the project page.
Community Documentation
Documentation and usage examples are available in the
README.md
file included with the module.
Project information
- Project categories: Artificial Intelligence (AI)
3 sites report using this module
- Created by pmaiacar on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.


