Dashboards & Visualizations

Login dashboard thats too complex for me

williamsmew
New Member

I need to create a search string that shows the first interactive logon of the specified account and then the final logoff of the day for the same account. This is beyond me, ANY help is appreciated.

I am positive this is going to expand into a dashboard request showing all users in the office.

I probably have the wrong tags on it, no idea where this should go.

Tags (2)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi williamsmew,
are you speaking about Windows audit logs or application logs?
If Windows, there's a problem because Windows audit logs are very many and search is very slow (a Windows user login generates around 10-12 login/logout events and it's repeted many times in a connection!).

Anyway, the approach should be the following:

  • identify login and logout events (e.g. in windows login is Eventcode=4624 and logout is EventCode=2634),
  • then identify username field (e.g. in Windows is user),
  • ther run a search like the following (in Windows):

    index=wineventlog (EventCode=4624 OR EventCode=4634)
    | stats earliest(_time) AS earliest latest(_time) AS latest count BY user
    In this way you have the first login and the last logout in a time period.

Bye.
Giuseppe

0 Karma

woodcock
Esteemed Legend

Show us your login and logout events.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

What have you tried so far?

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...