Atlassian Confluence - Collecting Usage Metrics
Below are the scripts I used to collect usage stats from Confluence 3.5.x -- Average Number Of Edits select contenttype, min(number_of_changes), max(number_of_changes), avg(number_of_changes) from ( select contenttype, cast(lastmoddate As Date) as changedate, count(*) as number_of_changes from content where content.creationdate > DATEADD(year,-2,getDate()) and version=1 group by contenttype, cast(lastmoddate As Date) ) as dates group by contenttype -- Number of users select lastmodifier,count(*) from content where lastmoddate>DATEADD(year,-2,getDate()) group by lastmodifier having count(*)>10 order by 2 desc -- New pages create in X years select contenttype, count(*) from content where lastmoddate>DATEADD(year,-2,getDate()) AND prevver is NULL group by content.contenttype -- Total number of pages SELECT COUNT(*) FROM content WHERE contenttype='PAGE' AND...