<?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: Streamstats help in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Streamstats-help/m-p/384940#M21175</link>
    <description>&lt;P&gt;&lt;CODE&gt;| eval COMMENT = "Filter those whose most recent action was a logon"&lt;/CODE&gt; is gorgeous ; - ) &lt;/P&gt;</description>
    <pubDate>Thu, 03 Jan 2019 23:16:24 GMT</pubDate>
    <dc:creator>ddrillic</dc:creator>
    <dc:date>2019-01-03T23:16:24Z</dc:date>
    <item>
      <title>Streamstats help</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Streamstats-help/m-p/384938#M21173</link>
      <description>&lt;P&gt;Here are two events from the  source-type&lt;/P&gt;

&lt;P&gt;2019-01-03 09:56:14,626 https-jsse-nio-7443-exec-126 &lt;STRONG&gt;TOMMYLE&lt;/STRONG&gt; 596x8523868x11 1pymrrq 30.139.119.25,30.128.254.78 /secure/Logout!default.jspa &lt;STRONG&gt;HttpSession created&lt;/STRONG&gt; [70jb1u]&lt;/P&gt;

&lt;P&gt;2019-01-03 09:56:14,626 https-jsse-nio-8443-exec-126 &lt;STRONG&gt;TOMMYLE&lt;/STRONG&gt;  596x8523868x11 1pymrrq 30.139.119.25,30.128.254.78 /secure/Logout!default.jspa &lt;STRONG&gt;HttpSession&lt;/STRONG&gt; [1pymrrq] &lt;STRONG&gt;destroyed&lt;/STRONG&gt; for 'AF27461'&lt;/P&gt;

&lt;P&gt;where TOMMYLE is the user and 'HttpSession created/destroyed' indicates when he logs in and gets logged out from the app. I could use some help probably with streamstats or something similar where it should compare , "keeping the user name same if the 'HttpSession created' word changes to 'HttpSession [some string] destroyed' in some upcoming event (which means the user session ended) then it should keep a tab/count telling whether the user is logged in right now. I intend to uses a timechart to show from the above data how many users are logged in right now in a span of 1 hour (Optional : and if possible how long the used was logged on).&lt;/P&gt;

&lt;P&gt;Thank you. I hope i am clear with the explanation.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 15:34:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Streamstats-help/m-p/384938#M21173</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2019-01-03T15:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Streamstats help</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Streamstats-help/m-p/384939#M21174</link>
      <description>&lt;P&gt;This should get you started.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo "HttpSession" 
| eval COMMENT = "Extract the fields.  You can skip this bit if they're already extracted."
| rex "(?:\S+\s){3}(?&amp;lt;user&amp;gt;\S+)\s\S+\s(?&amp;lt;session&amp;gt;\S+)\s.*?HttpSession (?:\[[^\]]+\]\s)?(?&amp;lt;action&amp;gt;\S+)?"
| eval COMMENT = "Get the latest action for each user"
| stats first(_time) as logonTime, latest(action) as action, latest(user) as user by session
| eval COMMENT = "Filter those whose most recent action was a logon"
| where action="created"
| table logonTime user
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Jan 2019 22:28:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Streamstats-help/m-p/384939#M21174</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-01-03T22:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Streamstats help</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Streamstats-help/m-p/384940#M21175</link>
      <description>&lt;P&gt;&lt;CODE&gt;| eval COMMENT = "Filter those whose most recent action was a logon"&lt;/CODE&gt; is gorgeous ; - ) &lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 23:16:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Streamstats-help/m-p/384940#M21175</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-01-03T23:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Streamstats help</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Streamstats-help/m-p/384941#M21176</link>
      <description>&lt;P&gt;@richgalloway ♦ This is brilliant. Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 07:04:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Streamstats-help/m-p/384941#M21176</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2019-01-04T07:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Streamstats help</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Streamstats-help/m-p/384942#M21177</link>
      <description>&lt;P&gt;@richgalloway ♦  Can we put in a timechart like command indicating how many users were logged in per 30 min over a period of last 24 hours ?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 09:23:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Streamstats-help/m-p/384942#M21177</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2019-01-04T09:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Streamstats help</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Streamstats-help/m-p/384943#M21178</link>
      <description>&lt;P&gt;Try replacing the &lt;CODE&gt;where&lt;/CODE&gt; and &lt;CODE&gt;table&lt;/CODE&gt; commands with &lt;CODE&gt;timechart span=30m dc(user)&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 13:51:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Streamstats-help/m-p/384943#M21178</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-01-04T13:51:04Z</dc:date>
    </item>
  </channel>
</rss>

