Audit alerts and their recipients
This page is for administrators who make sure that a serious event on a public site reaches a person. The audit trail
evaluates alert rules over its records; each firing is recorded as system.audit.alert and sent to syslog and mail
(4.5 Alerts and their recipients).
Contents
- The shipped rules
- Who gets the mail
- Routing alerts to your security team
- Testing and tuning
- Related pages
The shipped rules
From settings/audit.ini [AuditAlertSettings] Rules[]:
| Rule | Fires when | Severity | Sent to |
|---|---|---|---|
brute_force | 20 failed sign-ins from one network within 5 minutes | critical | syslog, mail |
brute_force_user | 10 failed sign-ins for one account within 15 minutes | alert | syslog, mail |
admin_role_granted | a role with */*, setup/*, role/* or audit/manage is assigned | critical | syslog, mail |
settings_out_of_hours | a setting is written outside business hours | warning | syslog |
mass_delete | 500 nodes removed by one user within 10 minutes (children counted) | critical | syslog, mail |
audit_disabled | the audit is switched off | emergency | syslog, mail |
chain_broken | verification finds a broken chain | alert | syslog, mail |
Alerts are evaluated by the cronjob part (the frequent group): if it does not run, no alert fires.
Who gets the mail
The first of these that is set:
- the rule's own
[AlertRule_<rule>] Recipients[]; [AuditAlertSettings] Recipients[];[AuditSink_mail] Receivers[](older name);admin, which issite.ini [MailSettings] AdminEmail.
Recipients can be admin, an address, group:<name> (a list in [AlertRecipients_<name>]), user:<id>,
login:<login>, usergroup:<id>, or role:<name or id>. Disabled users and invalid addresses are left out. Mail goes
from the cronjob part only, one per recipient, at most one per rule and recipient within 900 seconds.
Routing alerts to your security team
In settings/override/audit.ini.append.php:
[AuditAlertSettings]
Recipients[]
Recipients[]=group:security
[AlertRecipients_security]
Addresses[]
Addresses[]=[email protected]
Recipients[]
Recipients[]=role:AdministratorUse a team mailbox rather than one person's address, so alerts are seen during absences. Then check:
./console exp:audit alerts recipients --allow-root-user
./console exp:audit alerts recipients --rule=admin_role_granted --allow-root-userThe command lists every address with the entries that produced it and any problem (an unknown group, a disabled user).
Testing and tuning
- Replay a rule against a past day before changing it:
./console exp:audit alerts test mass_delete --replay=<YYYY-MM-DD> --allow-root-user. - Business hours for
settings_out_of_hoursare[AuditAlertSettings] BusinessDays=1-5andBusinessHours=7-19as shipped (in the site's time zone); match them to your office. - Look at fired alerts in the Audit tab under Alerts (
/audit/alerts). - Write down, for each rule, who acts and how (see "Incident response" in this section).
Related pages
- Audit guide, 4.5
- The audit trail for public bodies
- 13.14 The audit log
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.