ARTIFACTORY: How to Configure a Retention Cleanup Policy for the jfrog-logs Repository
IntroductionThis article explains how to configure an automated cleanup policy in JFrog Artifactory to manage the retention and deletion of artifacts stored in the system's jfrog-logs repository based on defined criteria.Note:
This article applies only to JFrog Cloud (SaaS) Artifactory deployments. It is not applicable to JFrog Self-Hosted (On-Premises) environments.
Prerequisites
-
Subscription Level:-
Enterprise+ (Artifactory version 7.98.2 or later) -
Enterprise X (Artifactory version 7.139.1 or later)
-
-
Permissions: Platform Administrator or Project Administrator privileges.
Step-by-Step Configuration Guide
To create a Package Cleanup Retention policy:-
From the Administrator module, select Artifactory > Retention Policies. -
In the Retention Policies page, from the Create Policy dropdown list, click Cleanup Policy.
-
In the Create New Cleanup Policy page, select Package.
-
Configure the following on the Create New Cleanup Policy page. Please fill in the details accordingly and refer to the following screenshot and documentation for more details.
Note:
Select the package type as generic and the repository jfrog-logs for logs folder.-
Click Save to save the policy.
The newly created cleanup policy appears in the Policies list and executes on the scheduled date and time.-
Perform Dry Run Cleanup Policy: This feature allows you to see which items would be deleted without actually deleting them. We recommend performing a dry run and reviewing the results before enabling a policy.
-
Enable/Disable Cleanup Policy: The policy must be enabled to run automatically according to the schedule, or run the Cleanup Policy manually
Related Resources
For more details on the fields of the cleanup policy, please refer to the following documentation: