<?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 Re: track all active session (RDP) in network by user in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/track-all-active-session-RDP-in-network-by-user/m-p/461099#M79574</link>
    <description>&lt;P&gt;no one can help me?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2019 09:46:46 GMT</pubDate>
    <dc:creator>givehchin</dc:creator>
    <dc:date>2019-08-27T09:46:46Z</dc:date>
    <item>
      <title>track all active session (RDP) in network by user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/track-all-active-session-RDP-in-network-by-user/m-p/461098#M79573</link>
      <description>&lt;P&gt;hello, I want to track all active session(RDP) in the network and see who login which server, what is the source IP address, and the sum of minutes of the active session&lt;BR /&gt;
I use this code found in this forum with some tune but it doesn't cover all that I need, it is necessary I know how much time is session active&lt;BR /&gt;
sry if my English not fluent&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="WinEventLog:Security" EventCode=4624 OR EventCode=4634  Account_Name=*  action=success NOT | eval User=if(mvcount(Account_Name)&amp;gt;1, mvindex(Account_Name,1), mvindex(Account_Name, 0))    | eval User=lower(User) | search NOT User=*$ | transaction User maxevents=2 startswith="EventCode=4624" endswith="EventCode=4634" maxspan=-1   | stats  sum(duration) As Duration by User, ComputerName, Source_Network_Address   | eval  Duration(M)=round((Duration/60), 0)    | table  User,Source_Network_Address,Duration(M),ComputerName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 25 Aug 2019 05:22:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/track-all-active-session-RDP-in-network-by-user/m-p/461098#M79573</guid>
      <dc:creator>givehchin</dc:creator>
      <dc:date>2019-08-25T05:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: track all active session (RDP) in network by user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/track-all-active-session-RDP-in-network-by-user/m-p/461099#M79574</link>
      <description>&lt;P&gt;no one can help me?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 09:46:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/track-all-active-session-RDP-in-network-by-user/m-p/461099#M79574</guid>
      <dc:creator>givehchin</dc:creator>
      <dc:date>2019-08-27T09:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: track all active session (RDP) in network by user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/track-all-active-session-RDP-in-network-by-user/m-p/461100#M79575</link>
      <description>&lt;P&gt;What problem do you see with current search results? How many events does your search is processing (or could process)?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 13:53:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/track-all-active-session-RDP-in-network-by-user/m-p/461100#M79575</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-08-27T13:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: track all active session (RDP) in network by user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/track-all-active-session-RDP-in-network-by-user/m-p/461101#M79576</link>
      <description>&lt;P&gt;&lt;STRONG&gt;it is necessary I know how much time is session active&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;From the search you attached:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval  Duration(M)=round((Duration/60), 0)    
| table  User,Source_Network_Address,Duration(M),ComputerName
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The Duration here is being is the time between the login and logoff events associated with the session. &lt;BR /&gt;
Although I believe there may be an issues:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| transaction User maxevents=2 startswith="EventCode=4624" endswith="EventCode=4634" maxspan=-1   
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If a user RDPs to multiple system,s, those session could be incorrectly connected as a transaction since you are only using the username as the criteria.  I would change that to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| transaction User, ComputerName maxevents=2 startswith="EventCode=4624" endswith="EventCode=4634" maxspan=-1   
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Aug 2019 17:35:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/track-all-active-session-RDP-in-network-by-user/m-p/461101#M79576</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2019-08-27T17:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: track all active session (RDP) in network by user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/track-all-active-session-RDP-in-network-by-user/m-p/461102#M79577</link>
      <description>&lt;P&gt;thank you, it is useful &lt;BR /&gt;
if I want to track active session too, what should do??? I mean the user does not log off cause we want to monitor users behavior&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 03:46:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/track-all-active-session-RDP-in-network-by-user/m-p/461102#M79577</guid>
      <dc:creator>givehchin</dc:creator>
      <dc:date>2019-08-28T03:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: track all active session (RDP) in network by user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/track-all-active-session-RDP-in-network-by-user/m-p/461103#M79578</link>
      <description>&lt;P&gt;you would keep evicted (incomplete transactions) and find the incomplete ones with the start event&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| transaction User, ComputerName  startswith="EventCode=4624" endswith="EventCode=4634" maxspan=-1 maxevents=2  keepevicted=true 
| search for closed_txn=0 AND EventCode=4624
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Transaction"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/Transaction&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 13:34:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/track-all-active-session-RDP-in-network-by-user/m-p/461103#M79578</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2019-08-28T13:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: track all active session (RDP) in network by user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/track-all-active-session-RDP-in-network-by-user/m-p/461104#M79579</link>
      <description>&lt;P&gt;I want to see active session, this search show session that disconnect and the user doesn't active anymore, I need to see active session&lt;/P&gt;</description>
      <pubDate>Sat, 31 Aug 2019 06:36:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/track-all-active-session-RDP-in-network-by-user/m-p/461104#M79579</guid>
      <dc:creator>givehchin</dc:creator>
      <dc:date>2019-08-31T06:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: track all active session (RDP) in network by user</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/track-all-active-session-RDP-in-network-by-user/m-p/461105#M79580</link>
      <description>&lt;P&gt;do your self test this????&lt;/P&gt;</description>
      <pubDate>Sun, 01 Sep 2019 07:36:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/track-all-active-session-RDP-in-network-by-user/m-p/461105#M79580</guid>
      <dc:creator>givehchin</dc:creator>
      <dc:date>2019-09-01T07:36:23Z</dc:date>
    </item>
  </channel>
</rss>

