Reporting on space size in Confluence (mostly attachments)

I haven't found an answer to this question on here, and I'm surprised it's not something that's built-in to Confluence.

What I'd like is to get a summary report by space. Most importantly, count and size of attachments, but general information about each space would be useful as well (e.g. number of pages, pages per day created, etc.).

This doesn't have to be in a Confluence page, so any sort of solution would suffice.

3 answers

1 accepted

This widget could not be displayed.

Hi Thomas,

Apparently this feature is still not there in Confluence yet. There are almost 2 quite similar new feature request that you can vote, comment, and watch it:

If you are from using OnDemand, then this is information is something that you cannot get access of. However, if you are using Behind The Firewall server, then the workaround would be to make a full export of your space (ensure you ticked the box "Include hidden pages") and check the size of the export later.

Cheers!

grumble grumble grumble

I voted on CONF-11155 as it most matches what I'm looking to do. Thanks!

This widget could not be displayed.

Thomas, if you still need this, try https://answers.atlassian.com/questions/93767/information-about-disc-space-used-by-different-spaces. It's a user macro that gives you that information plus some. It only reports the MB size of the attachments and not the whole space though.

This widget could not be displayed.

This is for SQL 2016, just fyi it is case sensitive. I also have a conversion for MB convert(decimal (8,2), (sum(LONGVAL) / 1024.)/1000).

 

select
s.SPACEKEY,
-- sum(LONGVAL)
convert(decimal (8,2), (sum(LONGVAL) / 1024.)/1000)
FROM
CONTENTPROPERTIES cp
JOIN CONTENT c
ON
cp.CONTENTID = c.CONTENTID
JOIN SPACES s
ON
s.SPACEID = c.SPACEID
WHERE
c.CONTENTTYPE = 'ATTACHMENT'
AND
cp.PROPERTYNAME = 'FILESIZE'
GROUP BY
s.SPACEKEY
;

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

496 views 7 6
Join discussion

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