How can I find the largest files in Artifactory?

JFrog Support
2020-04-30 07:46

 

For Artifactory 3.5.0 and above, finding the biggest files in Artifactory can easily be done by using the Artifactory Query Language (AQL)

 

 

The following example demonstrates a AQL REST-API query that returns the biggest 10 files in Artifactory:

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

 

The number of files to return can be changed by changing the values for 'limit( )'.