Add event 'Reference ID - readable' into the default sys log format

Created on 6 March 2023, over 1 year ago
Updated 7 March 2023, over 1 year ago

Problem/Motivation

Currently, the default 'Events Log Track format' doesn't include the reference ID (readable). In a site that only uses syslog will lost the event reference ID in the logs.

Steps to reproduce

  1. Enable Events Log Track Syslog module.
  2. Go to the config page (/admin/config/system/events-log-track).
  3. Disable logging to DB.
  4. Install a module.
  5. Check the event logs.

There are some logs created during installing a new module. They look like

Proposed resolution

It would be better, if we could include the important information in the default format.
Although the admin user can change the format via the config page after installing the module, a such important information should be included as default.

Change the format from:

ELT [[event-log:type]] [[event-log:operation]] ON [[event-log:path]] BY [user:[event-log:user:uid]:[event-log:user:name]:[event-log:user:roles:join:,]] [[event-log:description]]

To:

ELT [[event-log:type]] [[event-log:ref_char]] [[event-log:operation]] ON [[event-log:path]] BY [user:[event-log:user:uid]:[event-log:user:name]:[event-log:user:roles:join:,]] [[event-log:description]]

After including the reference ID, the logs would look like:

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ“Œ Task
Status

Fixed

Version

3.1

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia mingsong πŸ‡¦πŸ‡Ί

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024