Not really, because "currently logged in" is not something that is particularly useful.
Think of it this way - I log into Confluence, do some work, wander off to make tea, get distracted, play with the cat, go shopping, whatever, and don't come back until the next day, where I simply pick up where I left off, because I left the browser open.
At what point am I no longer logged into Confluence? Technically, there's no point at which I'm not "logged in". But in real life, I logged off when I got thirsty.
Confluence will log you out if you have been idle for a while. It will end the session so next time you try to change pages or do something that requires you to be logged in, it will send you to the login screen. I would also like to know who is currently logged into the instance but I am not sure its possible. I haven't found of anyway to do it using plugins or the API.
That is true, but if you've got the "remember me" flag set, although you may get new session details, it's the same login as far as the user is concerned. I suspect we probably should ask why the question has come up - if it's for load testing or performance reasons, then the number of "currently logged in users" isn't actually useful. If it's licencing, then what you really need is "people who have actively contributed over a recent period". In fact, I'm not even sure "currently logged in" is a useful thing to know here.
You would be able to get a lot of that info from Google analytics but I can think of some reasons I would want to know exactly who is logged in at a specific point in time. Either way, I don't think it is possible to find out. I think Google Analytics may be able to tell you how many users are currently on your instance but not who they are.
One thing you can do in instances like that is put up a banner: https://confluence.atlassian.com/display/CONFKB/How+to+Add+a+Site-Wide+Banner I do see your point though because I run into similar issues. The banner helps but if a user is editing a page, they will not see the banner until they either save the page or go to another page. I have put up a banner before when i needed to do a quick restart and later heard complaints that people lost work because they did not see the banner since they were in edit mode when i put it up.
Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time! We're looking for people to participate in a remote 1-hr workshop...
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!
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