<?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: Tracking Session Open/Closed in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Tracking-Session-Open-Closed/m-p/303770#M2719</link>
    <description>&lt;P&gt;Create an alert, and use this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main sourcetype=linux_secure user="x" 
| transaction pid startswith="session opened" endswith="session closed"
| where duration&amp;gt;2
| table _time user duration
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Set it to trigger a notification if the number of events is greater than 0.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Apr 2018 19:02:24 GMT</pubDate>
    <dc:creator>elliotproebstel</dc:creator>
    <dc:date>2018-04-04T19:02:24Z</dc:date>
    <item>
      <title>Tracking Session Open/Closed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Tracking-Session-Open-Closed/m-p/303768#M2717</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;How could I track if a session is opened but not closed immediately and by track I mean implementing a rule to alert for a session longer than a second? &lt;/P&gt;

&lt;P&gt;Apparently I don't have enough points to post the logs associated with this in a picture :(.&lt;/P&gt;

&lt;P&gt;4/3/18 Apr 3 09:00:00 nwknjrhca1 sshd[31059]: pam_unix(sshd:session): session opened for user "x" by (uid=0)&lt;/P&gt;

&lt;P&gt;Then there is a correspond event for the session being closed at the exact same time.&lt;/P&gt;

&lt;P&gt;4/3/18 Apr 3 09:00:00 nwknjhca1 sshd[30997]: pam_unix(sshd:session): session closed for user "x"&lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated!&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 18:14:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Tracking-Session-Open-Closed/m-p/303768#M2717</guid>
      <dc:creator>Hegemon76</dc:creator>
      <dc:date>2018-04-04T18:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Session Open/Closed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Tracking-Session-Open-Closed/m-p/303769#M2718</link>
      <description>&lt;P&gt;index=main sourcetype=linux_secure user="x" | transaction pid startswith="session opened" endswith="session closed"| table _time user duration&lt;/P&gt;

&lt;P&gt;So if I can somehow get this to show duration of greater than 2 seconds and report on that.....would be perfect.....&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 18:56:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Tracking-Session-Open-Closed/m-p/303769#M2718</guid>
      <dc:creator>Hegemon76</dc:creator>
      <dc:date>2018-04-04T18:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Session Open/Closed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Tracking-Session-Open-Closed/m-p/303770#M2719</link>
      <description>&lt;P&gt;Create an alert, and use this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main sourcetype=linux_secure user="x" 
| transaction pid startswith="session opened" endswith="session closed"
| where duration&amp;gt;2
| table _time user duration
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Set it to trigger a notification if the number of events is greater than 0.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 19:02:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Tracking-Session-Open-Closed/m-p/303770#M2719</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-04-04T19:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking Session Open/Closed</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Tracking-Session-Open-Closed/m-p/303771#M2720</link>
      <description>&lt;P&gt;My goodness I knew it would be easy....&lt;/P&gt;

&lt;P&gt;Sigh&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 19:16:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Tracking-Session-Open-Closed/m-p/303771#M2720</guid>
      <dc:creator>Hegemon76</dc:creator>
      <dc:date>2018-04-04T19:16:59Z</dc:date>
    </item>
  </channel>
</rss>

