SQL needed for space access by user

I need to produce a report, for some arbitrary period of time and every space, who has accessed the space and how many times during the time period. Does anyone have any idea how I might do this? I'm relatively inexperienced with SQL and even less so with the Confluence schema.

 

We're running Confluence version 5.7.1 and MySQL 5.1.73.

 

Thanks!

 

1 answer

This widget could not be displayed.

Confluence doesn't natively track "access" to spaces, so there's nothing stored you could even begin to query.

You'll need to look at one of the tracker add-ons you can get.

Instead of user access to a space, would it be possible to get the number of page views per user for a space via a SQL query?

Ann Worley Atlassian Team Jun 12, 2017

Confluence doesn't write records to the database to track users accessing pages. There are user access logs you can turn on, but they won't look like a report.

Nic's suggestion of trying a tracking add-on is a good idea.

There are other ideas on this page:

How to Enable User Access Logging

Please, re-read the first sentence of my answer.

Sorry, when you wrote spaces, I didn't understand that to mean pages as well. Thanks for the assistance.

Thanks, Ann. I'll take a look at the page.

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...

300 views 2 4
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