The audit.php cronjob
Audit: sink spools, alert rules, rotation by day, archives, retention and checkpoints.
Entry point cronjobs/audit.php, code in kernel/private/classes/cronjobs/audit.php.
The cronjob part audit (cronjobs/audit.php; [CronjobPart-audit] and the frequent group in cronjob.ini): the
audit's scheduled work, expAuditMaintenance::run(). Every run: the incremental index, the sink spools (webhook,
mail, network syslog) and the alert rules' cronjob pass; once a day after [AuditRotationSettings] RotateAfter:
rotation by day, verification, archiving, retention, pseudonymisation of the index and the checkpoint
(doc/eng-us/bc/6.0/audit.md, "Rotation, archives and retention (Q8)").
When it runs
In the shipped settings/cronjob.ini it belongs to: the part frequent, the part audit.
# run its part (as the user the web server runs as, from the installation root)
php runcronjobs.php frequent
./console exp:runcronjobs frequent
# run only this script
php runcronjobs.php auditAdd it to a part in an override:
# settings/override/cronjob.ini.append.php
[CronjobPart-frequent]
Scripts[]=audit.php
*/ ?>Related
Generated by ./console exp:help:examples from cronjobs/audit.php, kernel/private/classes/cronjobs/audit.php, settings/cronjob.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.