Ad slot: top

SPL

Get list of concurrent users on a specific server

Description

Submitted by rupya1983

  The following Splunk query will return results for concurrent logon sessions (in a Windows Environment) on any given server (or multiple servers) with slight modification.
  • First you must define the time span in which you consider "concurrent" this is defined in the "bucket" section below and the example uses a 30 minute range (widen or narrow to fit your needs).
  • Secondly this query does NOT define a host, to define a specific host insert "host=yourhostname" at the beginning of the query.
8 1
sourcetype="WinEventLog:Security" EventCode=4624 (Logon_Type=10 OR Logon_Type=2) | bucket span=30m _time | eval Date=strftime(_time, "%Y/%m/%d %H:%M:%S") | rex "New\sLogon:\s*Security\sID:\s+\S*\s+Account\sName:\s+(?<ACCT>\S+)"  | stats count by ACCT, _time, host | where count>1 | sort - count

Comments

1 total

AL
Alexander Waintraub
6/16/2016

This report is getting an error

Leave a comment

You must log in to post a comment.

Ad slot: bottom