<?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: active user session at any given time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/active-user-session-at-any-given-time/m-p/76452#M19343</link>
    <description>&lt;P&gt;Not true. If there is a duration, that mean the session has already started and ended and I don't need to count them because they are NOT active. Duration is measured in millisecond, so for any completed sessions, duration will be at least 1.&lt;/P&gt;

&lt;P&gt;By filtering for duration = 0, I get three things:&lt;BR /&gt;
- Login sessions that has not logout or expires yet&lt;BR /&gt;
- logout session that has a login before the time range specified&lt;BR /&gt;
- expired session that has a login before the time range specified&lt;/P&gt;

&lt;P&gt;And no, concurrency is not what I need.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2013 17:35:15 GMT</pubDate>
    <dc:creator>lain179</dc:creator>
    <dc:date>2013-03-28T17:35:15Z</dc:date>
    <item>
      <title>active user session at any given time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/active-user-session-at-any-given-time/m-p/76450#M19341</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I would like to draw a chart representing number of active sessions at any given time...probably on a time chart.&lt;/P&gt;

&lt;P&gt;The log contains three different type of log lines: Login, Log out and Expire sessions. I have come up with the following search so far, but it's not working well.&lt;/P&gt;

&lt;PRE&gt;

sourcetype="Engine" Server="ABC" login OR "log out" OR "removing session" | transaction UserSession | where duration=0 | timechart span=1m count(LoginDate) as in count(LogoutDate) as out count(LoginExpireDate) as expire | streamstats sum(in) as totalin sum(out) as totalout sum(expire) as totalexpire | eval totalactive=totalin-totalout-totalexpire 

&lt;/PRE&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2013 17:40:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/active-user-session-at-any-given-time/m-p/76450#M19341</guid>
      <dc:creator>lain179</dc:creator>
      <dc:date>2013-03-27T17:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: active user session at any given time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/active-user-session-at-any-given-time/m-p/76451#M19342</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Why do you filter the result of transaction command with duration=0?&lt;BR /&gt;
I think that causes Splunk to return sessions that immediately end after they start.&lt;/P&gt;

&lt;P&gt;Maybe "concurrency" command can be used for your purpose.&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Concurrency"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Concurrency&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2013 02:17:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/active-user-session-at-any-given-time/m-p/76451#M19342</guid>
      <dc:creator>takeda</dc:creator>
      <dc:date>2013-03-28T02:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: active user session at any given time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/active-user-session-at-any-given-time/m-p/76452#M19343</link>
      <description>&lt;P&gt;Not true. If there is a duration, that mean the session has already started and ended and I don't need to count them because they are NOT active. Duration is measured in millisecond, so for any completed sessions, duration will be at least 1.&lt;/P&gt;

&lt;P&gt;By filtering for duration = 0, I get three things:&lt;BR /&gt;
- Login sessions that has not logout or expires yet&lt;BR /&gt;
- logout session that has a login before the time range specified&lt;BR /&gt;
- expired session that has a login before the time range specified&lt;/P&gt;

&lt;P&gt;And no, concurrency is not what I need.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2013 17:35:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/active-user-session-at-any-given-time/m-p/76452#M19343</guid>
      <dc:creator>lain179</dc:creator>
      <dc:date>2013-03-28T17:35:15Z</dc:date>
    </item>
  </channel>
</rss>

