Purge audit logs execution.
This task can be used to purge all audits logs execution.
type: "io.kestra.plugin.ee.core.log.PurgeAuditLogs"
Purge all logs that has been created more than one month ago.
id: "purgeauditlogs"
type: "io.kestra.plugin.ee.core.log.PurgeAuditLogs"
endDate: "{{ now() | dateAdd(-1, 'MONTHS') }}"
Purge all audit logs that has been created more than one month ago and which concern FLOW & EXECUTION permission.
id: "purgeauditlogs"
type: "io.kestra.plugin.ee.core.log.PurgeAuditLogs"
endDate: "{{ now() | dateAdd(-1, 'MONTHS') }}"
permissions:
- FLOW
- EXECUTION
YES
The maximum date to be purged.
All auditlogs before this date will be purged.
YES
Namespace whose logs need to be purged, or namespace of the logs that needs to be purged.
If flowId
isn't provided, this is a namespace prefix, else the namespace of the flow.
NO
FLOW
BLUEPRINT
TEMPLATE
NAMESPACE
EXECUTION
USER
GROUP
ROLE
BINDING
AUDITLOG
SECRET
KVSTORE
IMPERSONATE
SETTING
INFRASTRUCTURE
APP
APPEXECUTION
ME
APITOKEN
DASHBOARD
TENANT
UNKNOWN
The permission to be purged.
The permission of AuditLog to purge, by default purge everything.
YES
The minimum date to be purged.
All auditlogs after this date will be purged.
NO
READ
CREATE
UPDATE
DELETE
LOGIN
LOGOUT
IMPERSONATE
The type of action to be purged.
The type of action from AuditLog to purge, by default purge everything.
0
The count of deleted logs.