Jira - SQL Query - Number of users logging in a month

Hi,

I am wondering if there is an SQL query which I can use to find out the number of users who logged into Jira in months. Is this information stored or possible to see?

I have got a list of people counting towards our licensing but this information would help as well.

Thanks in advance,

Thomas

1 answer

So unfortunately I don't think this is straight forward.

JIRA does store user sessions, so it knows this information, but I believe they are only saved in memory as they clear in between restarts.

Next, JIRA does store some information in the database.  There is a table/column of cwd_user.updated_date and that value is updated each time a user logs in or updates their profile.  Secondly, you can look at the cwd_user_attributes table, each user will have a value in there of "login.lastLoginMillis" which is updated whenever a user logs in.  In my testing, it does not appear this is updated each time they use the app, so if they check the "remember me" box, and they don't actually log in using username/password for a few months, this won't get updated.

Lastly, you can enable JIRA User Access logging and then query that using a tool like Logstash or Splunk to see who is actually hitting the site.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

184 views 1 17
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