<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to find an active user session on different machines at the same time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-an-active-user-session-on-different-machines-at-the/m-p/349500#M103465</link>
    <description>&lt;P&gt;Hello Splunkers.&lt;/P&gt;

&lt;P&gt;Using the wineventlog I can tell when a user logged on and off based on EventCodes 4624 and 4634 and the logon id:&lt;/P&gt;

&lt;P&gt;Logon:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;03/09/2017 11:54:51 AM
LogName=Security
SourceName=Microsoft Windows security auditing.
EventCode=4624
EventType=0
Type=Information
ComputerName=xxxxxxxxxx
TaskCategory=Logon
OpCode=Info
RecordNumber=xxxxx
Keywords=Audit Success
Message=An account was successfully logged on.
...
New Logon:
Security ID:        XXX\visit
Account Name:       visit
Account Domain:     XXX
Logon ID:       0xA2207D111
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Logoff&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;03/09/2017 12:11:21 PM
LogName=Security
SourceName=Microsoft Windows security auditing.
EventCode=4634
EventType=0
Type=Information
ComputerName=xxxxxx
TaskCategory=Logoff
OpCode=Info
RecordNumber=xxxxxx
Keywords=Audit Success
Message=An account was logged off.

Subject:
    Security ID:        XXX\visit
    Account Name:       visit
    Account Domain:     XXX
    Logon ID:       0xA2207D111
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, I need to know when exists the same Account Name using two machines, I mean, when there are two sessions active at the same time.&lt;/P&gt;

&lt;P&gt;Any ideas how can I do this?&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
GMA&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2017 15:21:14 GMT</pubDate>
    <dc:creator>guimilare</dc:creator>
    <dc:date>2017-03-09T15:21:14Z</dc:date>
    <item>
      <title>How to find an active user session on different machines at the same time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-an-active-user-session-on-different-machines-at-the/m-p/349500#M103465</link>
      <description>&lt;P&gt;Hello Splunkers.&lt;/P&gt;

&lt;P&gt;Using the wineventlog I can tell when a user logged on and off based on EventCodes 4624 and 4634 and the logon id:&lt;/P&gt;

&lt;P&gt;Logon:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;03/09/2017 11:54:51 AM
LogName=Security
SourceName=Microsoft Windows security auditing.
EventCode=4624
EventType=0
Type=Information
ComputerName=xxxxxxxxxx
TaskCategory=Logon
OpCode=Info
RecordNumber=xxxxx
Keywords=Audit Success
Message=An account was successfully logged on.
...
New Logon:
Security ID:        XXX\visit
Account Name:       visit
Account Domain:     XXX
Logon ID:       0xA2207D111
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Logoff&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;03/09/2017 12:11:21 PM
LogName=Security
SourceName=Microsoft Windows security auditing.
EventCode=4634
EventType=0
Type=Information
ComputerName=xxxxxx
TaskCategory=Logoff
OpCode=Info
RecordNumber=xxxxxx
Keywords=Audit Success
Message=An account was logged off.

Subject:
    Security ID:        XXX\visit
    Account Name:       visit
    Account Domain:     XXX
    Logon ID:       0xA2207D111
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, I need to know when exists the same Account Name using two machines, I mean, when there are two sessions active at the same time.&lt;/P&gt;

&lt;P&gt;Any ideas how can I do this?&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
GMA&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 15:21:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-an-active-user-session-on-different-machines-at-the/m-p/349500#M103465</guid>
      <dc:creator>guimilare</dc:creator>
      <dc:date>2017-03-09T15:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to find an active user session on different machines at the same time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-an-active-user-session-on-different-machines-at-the/m-p/349501#M103466</link>
      <description>&lt;P&gt;You need the &lt;CODE&gt;concurrency&lt;/CODE&gt; command:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Concurrency"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Concurrency&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 15:28:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-an-active-user-session-on-different-machines-at-the/m-p/349501#M103466</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-09T15:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to find an active user session on different machines at the same time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-an-active-user-session-on-different-machines-at-the/m-p/349502#M103467</link>
      <description>&lt;P&gt;I tried this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="myindex_wineventlog" user=visit (EventCode=4624 OR EventCode=4634) | rex field=_raw .*(?&amp;lt;tr_id&amp;gt;0x\w{9}) | transaction tr_id | concurrency duration=duration
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, this search brings the durations of the sessions, and not the sessions that overlaps...&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 17:12:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-an-active-user-session-on-different-machines-at-the/m-p/349502#M103467</guid>
      <dc:creator>guimilare</dc:creator>
      <dc:date>2017-03-09T17:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to find an active user session on different machines at the same time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-an-active-user-session-on-different-machines-at-the/m-p/349503#M103468</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | streamstats current=f last(EventCode) AS nextEventCode BY user
| reverse
| streamstats current=f last(EventCode) AS prevEventCode BY user
| reverse
| search (EventCode=4624 AND prevEventCode=4624) OR (EventCode=4624 AND nextEventCode=4624)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This shows you any time any user has 2 logins (4624) without a logout between them (4634).  This is a HUGE shortcut.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 19:33:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-an-active-user-session-on-different-machines-at-the/m-p/349503#M103468</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-09T19:33:38Z</dc:date>
    </item>
  </channel>
</rss>

