Event Logging for Monolog

Event Logging for Monolog 1.0.0 beta 5

Kostenloser Download über tägliche Glücksaufgabe
XF-Kompatibilität
  1. 2.3.x
Summary
Event Logging for Monolog is an add-on for forum owners to capture detailed activity logs from their forums, including moderator actions, admin changes, spam detection, failed logins, server errors, and email interactions, ensuring critical information is recorded in real-time rather than only when accessed.
Event Logging for Monolog is an add-on for forum owners to capture detailed activity logs from their forums, including moderator actions, admin changes, spam detection, failed logins, server errors, and email interactions, ensuring critical information is recorded in real-time rather than only when accessed

Nothing is recorded until you turn an event group on. Installing it changes nothing about what your forum logs.

What it records

Eight event groups, each its own option, all off by default:

Group Events From
Moderation moderator.action, user.banned, user.ban_updated, user.ban_lifted the moderator log, and every ban applied, changed or lifted
Admin actions admin.action the admin log - each change submitted in the admin control panel
Spam triggers spam.triggered registrations and messages the spam checks rejected or moderated
Failed logins login.failed each failed login, and the member it matched
Server errors error.logged the server error log, every five minutes, with repeats counted
Email mail.sent, mail.failed every email XenForo hands to its mail transport
Payment callbacks payment.callback the payment provider log
API requests api.request each request to the REST API

A ninth option, under Admin actions, leaves out the keep-alive request an open admin control panel sends about every 50 minutes.

Server errors are the reason many people will want this. An exception on your forum normally reaches nobody until someone opens the server error log. With this group on it arrives in your logs within five minutes, at Error level, so Monolog Logging Service's email or Slack output can tell you. The same error logged a thousand times between runs is one record with a count, not a thousand.

A record, in Monolog's JSON format:


JSON:
{
    "message": "Moderator action",
    "context": {
        "event": "moderator.action",
        "moderator_log_id": 4172,
        "actor_user_id": 1,
        "content_type": "post",
        "content_id": 90211,
        "content_user_id": 12,
        "content_username": "alice",
        "content_title": "For sale: two tickets",
        "action": "delete_soft",
        "reason": "Duplicate listing"
    },
    "level_name": "INFO",
    "channel": "events",
    "datetime": "2026-09-30T14:03:11.482+10:00"
}


Search, dashboards and alerts should match on event, which is fixed, never on the message, which may be reworded. The README lists every field of every event.

Privacy

Turning a group on changes what your forum records about its members and staff, and where that record is kept. Whoever can read your logs can read these events, so check them against your privacy policy before you start.

Never recorded, by any event: API keys, tokens, session IDs or cookies; the content of a post, conversation, email or submitted form; a payment's details or the data a provider sent.

Recorded only by the events that are about it:
Email - each recipient's email address, and the subject. This is the group to think hardest about.
Failed logins - what was typed as the name or email address, and the IP address. People sometimes type a password into the name field, and it is recorded as typed.
Moderation - the title and author of the content acted on, and the reason given.
Spam triggers - the IP address.
Server errors - the error message, exactly as XenForo wrote it.

Requirements

XenForo 2.2 or later
PHP 7.4 or later
Monolog Logging Service 5.0.1 or later

Installation

Install Monolog Logging Service, then this add-on, as you would any other.
Raise the level for this add-on's channel in src/config.php. Events are logged at Info, and Monolog's log file takes Warning and above by default - so until you do this, an event is written nowhere:

PHP:
$config['monolog'] = [

    'file' => [

        'format' => 'json',

        'channels' => ['events' => 'info'],

    ],

];

channels raises this add-on's channel alone and leaves every other add-on's logging where it was. format is optional, but a log collector can only read an event's fields from JSON.
Turn on the groups you want under Options > Monolog, where this add-on's options follow Monolog's own:
Check the result from the XenForo root:
php cmd.php event-logging:validate
1791587534521.webp


Code:
php cmd.php event-logging:config                          # which groups are on, and the log file's level
php cmd.php event-logging:validate                        # whether an event can reach the log
php cmd.php event-logging:validate --unattended --strict  # for a monitor: a warning exits 2



event-logging:validate writes one probe record and looks for it in the log file. It exits 1 if a check failed and 0 otherwise, warnings included, so a deploy step can depend on it. With --strict a warning exits 2. That is not the monitoring-plugin numbering: 1 always means a check failed.
Autor
axtona
Ansichten
71
Erweiterungstyp
zip
Dateigröße
42.8 KB
Erste Veröffentlichung
Letzte Aktualisierung
Latest file name
Hampel-EventLogging-1.0.0b5.zip
MD5
90e41521e7d1e59c613ae3e7e3e1db33
VirusTotal
View report
Bewertungen 0.00 Sterne 0 Bewertungen
Link defekt? Nachricht senden an das NP-Team – wir helfen dir schnell!
Unterstütze den Entwickler Wenn du mit dem Test zufrieden bist oder mit deinem Projekt erfolgreich Geld verdient hast, klicke auf den Button Mehr Informationen, um den Entwickler durch einen Kauf zu unterstützen.

Neueste Aktualisierungen

  1. 1.0.0 beta 5 - 2026-11-23
    new: where the Admin API add-on is installed, it can run event-logging:validate's checks and report their outcomes; the probe record, which writes...
  2. 1.0.0 beta 3 - 2026-10-12
    fix: deleting the newest entries from the server error log made the Server errors group send every entry left in it again changed...

Weitere Ressourcen von axtona

Job & Cron Monitor A
The "CLI Job Runner" add-on for XenForo allows users to manually run and monitor their job queues and cron...
AI ForumBot A
AI ForumBot 2.1.1
ForumBot is an AI-powered managed service that integrates seamlessly into existing forums, providing...
Admin API: readonly operativen Endpunkte A
This product provides read-only API endpoints for XenForo forums to expose system diagnostics such as...

Ähnliche Ressourcen

Monolog Logging Service C
Dieses XenForo 2.x -Addon integriert Logging-Fähigkeiten durch die Verwendung der Monolog-Bibliothek, um...
[OzzModz] Prevent Email Address Change A
This add-on is designed to prevent users in certain groups from modifying their email addresses within a...
Ansichten
549
Aktualisiert
 Beschränke Gäste bei der Sprachwechselung A
The product is a free addon called "Prevent Guests From Changing Languages" from NullPro that allows users...
Ansichten
314
Aktualisiert
Zurück
Oben