How can I find very large attachments?

Over time, a lot of our users have been uploading attachments and some of them are quite large. I'm looking to review space usage and find attachments which are over, say, 5 MB in size and if possible older than 6 months; then review them to keep/delete.

Note that I'm aware of attachment size restrictions. What I'm trying to do is search for attachments based on size and possibly date.

2 answers

1 accepted

2 votes
Answer accepted

I use the meta data searches.

For example "filesize:[1024 TO 2048]" will find attachments between 1k and 2k in size. Setting the first number to say 1Meg, and the second number to something astronomical is an excellent starting point for "hunt the chunky attachment".

This trick supports searching created/modified dates for attachment as well, but I've not played with them, so don't have an example in mind.

My bookmark is not from Atlassian's docs for a change -

This doesn't really serve the intended purpose, imho. I tried this, and lucene compares range based on an alpha and not on an integer. e.g. 8192 TO 9999999999 includes attachments whose filesize starts with the 8,9, or randomly, 10. It will show an 8kB file, but not a 3MB file.

That's perfect, I didn't know meta search exists so that's a good point for me to do more complex things. Thanks a lot for that info.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,208 views 2 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you