Skip to Content
⚠️Active Development Notice: TimeTiles is under active development. Information may be placeholder content or not up-to-date.
ReferenceAPI ReferenceLibraryJobsHandlersAudit Log Ip Cleanup Job

web


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

const auditLogIpCleanupJob: 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