How can i get successful login count of user in a day?

I need to get the total number of login count of user in a day.Please help me how can i get the login count of user is there any way.

Thanks in advance.

2 answers

1 votes
Paulo Hennig Atlassian Team Apr 24, 2015

Hello Ramu,

In additional to Artur responde, you can check the atlassian-jira-security.log that logs this information, along the form:


http-2990-5 anonymous 790x245x1 1pj2kdu /rest/gadget/1.0/login HttpSession created [1pj2kdu]

http-2990-5 admin 790x245x1 1pj2kdu /rest/gadget/1.0/login The user 'admin' has PASSED authentication.


Based on that information, you can filter according your needs, and redirect to another file or schedule a script to achieve that and redirect to your email address (just an example).

JIRA stores user login count in database but counter is global, not per day. Check this query: SELECT * FROM cwd_user u JOIN cwd_user_attributes ua ON ua.user_id = u.ID; You can save output of this once per day and then compare results from two days to get login counts per day. I think some logins will not be counted: * User saved credentials in web browser and logs in using cookies. * Single sign-on using Crowd, when user is already logged into other application like Confluence

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,755 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot