SQL Queries for Confluence usage stats

Jim Birch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 17, 2011

Does anyone have any usage stas sql queries for Confluence they'd like to share? I'm interested in number of updates and new pagees by date, most prolific updaters, etc.

We currently run the Usage plugin but it is possibly implicated in some brownouts...

2 answers

1 accepted

1 vote
Answer accepted
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 17, 2011
Jim Birch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 17, 2011

Thanks Bob.

0 votes
Vijay Sv November 8, 2019

Here it is...........

 

select 'Total Spaces', count(*) from SPACES -----Total Spaces
select 'Personal Spaces', count(*) from SPACES where [SPACETYPE] ='personal' ---Personal Spaces
select 'Site Spaces',count(*) from SPACES where [SPACETYPE] = 'global' -- Site/global Spaces
SELECT 'Content (All Versions)', count(*) FROM [CONTENT] ---- Content (All Versions)
select 'Content (Current Versions)', count(*) from CONTENT where PREVVER is null; --- Content (Current Versions)
select count(*) from [dbo].[cwd_group] ---Local Groups
select count(*) from [dbo].[cwd_user] ----Local Users
SELECT 'Blogposts',count(*) FROM [CONTENT] WHERE CONTENTTYPE = 'BLOGPOST';
select 'All Pages',count(*) from CONTENT where CONTENTTYPE ='PAGE';
SELECT 'Comments',count(*) FROM CONTENT WHERE CONTENTTYPE = 'COMMENT';
SELECT 'All Content Attachments', count(*) FROM [dbo].[CONTENT] WHERE CONTENTTYPE = 'ATTACHMENT'; --All Content Attachments

 

Thanks,
VJ

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events