How to Find the Largest Files in Artifactory

How to Find the Largest Files in Artifactory

AuthorFullName__c
Swarnendu Kayal
articleNumber
000001237
ft:sourceType
Salesforce
FirstPublishedDate
2016-10-06T13:35:30Z
lastModifiedDate
2024-03-10T07:47:43Z
VersionNumber
8

Relevant Versions: This information pertains to Artifactory versions 3.5 and above.

To find the largest files in Artifactory, use the Artifactory Query Language (AQL). The following example demonstrates an AQL REST-API query that will return the top 10 largest files:
 

curl -X POST -uadmin:password  -H "Content-Type: text/plain" http://localhost:<port_number>/artifactory/api/search/aql -d 'items.find({"type":"file"}).sort({"$desc":["size"]}).limit(10)'

The number of files produced from a query can be changed by changing the values for limit(x).