Skip to main content
Solved

How can I check who is logged into SL1

  • May 28, 2024
  • 6 replies
  • 0 views

Forum|alt.badge.img

Is there a way to check who is logged into SL1 at any time?

Best answer by TonyAndres

Hello,

In the System > Monitor > Audit Logs page, if you filter the Source column by the string Session, you can see what users are logged in and logged out by IP address. Any user with a "Created a Session" log entry without a subsequent "Ended a session" or "session expired" log entry would still have an active session opened.

You can also check the System > Monitor > Access Logs page, which will show users as either Logged In or Logged Out.

Tony Andres

Senior Technical Support Engineer | ScienceLogic

6 replies

Forum|alt.badge.img
  • New Contributor
  • May 29, 2024

System > Monitor > Audit Logs will show you when someone has logged in. Filter the Message column by the string 'log'.

However, there is no record for an account timing out, and AFAIK no way to see 'active' sessions. I'm not even sure there is a concept of an active session.

With v12 there is the new setting System > Settings > Behaviour > User Login Session Timeout. This suggests there is a table somewhere that can see when an account last did something, but it isn't in master_access.accounts. Might be worth raising a support query.


  • Community Manager
  • Answer
  • May 29, 2024

Hello,

In the System > Monitor > Audit Logs page, if you filter the Source column by the string Session, you can see what users are logged in and logged out by IP address. Any user with a "Created a Session" log entry without a subsequent "Ended a session" or "session expired" log entry would still have an active session opened.

You can also check the System > Monitor > Access Logs page, which will show users as either Logged In or Logged Out.

Tony Andres

Senior Technical Support Engineer | ScienceLogic


Forum|alt.badge.img
  • Author
  • New Contributor
  • June 3, 2024

Thank you everyone


  • Employee
  • June 6, 2024

You can check this using GraphQL as well. This query will show the account details and the last login times:

query accountSearch { accounts(first:1000, order: {direction: asc, field: "id"}) { edges { node { id lastLoginTime contact { cell department firstName lastName title } organization { id } } } } }

And the link to docs: ScienceLogic - GraphQL API Introduction.


Forum|alt.badge.img
  • Contributor
  • July 8, 2024

select * from master_access.access_log limit 5000


Forum|alt.badge.img
  • Contributor II
  • July 26, 2024

In the DB Tool:

SELECT * FROM master_access.access_log WHERE state = 1

ORDER BY login_time DESC

LIMIT 1000;

Other possible states are:

| id | description  |
+----+--------------+
|  0 | Logged Out   |
|  1 | Logged In    |
|  2 | Active       |
|  3 | Expired      |
|  4 | Terminated   |
|  5 | Failed Login |