Starts in:
1 DAY
16 HRS
7 MIN
15 SEC
Starts in:
1 D
16 H
7 M
15 S

Periodic audit log deleter added #17054

Resolve #16918
Related Localization PR https://github.com/abpframework/abp/pull/19258
Documentation PR https://github.com/abpio/abp-commercial-docs/pull/768

How to test it?

  • Enable audit log setting feature for host
    image
  • Enable the periodic deleter worker on host settings
    image
  • Configure worker period default is everyday once
        Configure<ExpiredAuditLogDeleterOptions>(options =>
        {
            options.Period = (int)TimeSpan.FromSeconds(30).TotalMilliseconds;
        });
  • We can set global expired period from Host side on Audit logs->Global settings or if tenant has the audit log setting feature they can set from Audit logs->General settings. (Host side could set global period with that way it's gonna work for all tenants unless they customize their own setting.)
    image

After the worker completes the job, it should remove all audit log records based on specified settings. If the tenant disables the deletion, it's not going to remove them even if there is a global setting in place