web / lib/jobs/handlers/audit-log-ip-cleanup-job
lib/jobs/handlers/audit-log-ip-cleanup-job
Background job for clearing raw IP addresses from audit log entries.
Runs daily and nulls out the ipAddress field on entries older than 30 days,
preserving the permanent ipAddressHash for long-term correlation.
Variables
auditLogIpCleanupJob
constauditLogIpCleanupJob:object
Type Declaration
slug
slug:
string="audit-log-ip-cleanup"
schedule
schedule:
object[]
retries
retries:
number=2
handler()
handler: (
__namedParameters) =>Promise<{ output: \{ success: boolean; cleared: number; totalEligible: number; }; }>
Parameters
__namedParameters
job?
{ id?: string \| number; }
job.id?
string | number
req?
{ payload?: BasePayload; }
req.payload?
BasePayload
Returns
Promise<{ output: \{ success: boolean; cleared: number; totalEligible: number; }; }>
Last updated on