<?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 calculate the average durations and assemble this into a table/report of duration data that would cover all UserId/SessionId combos? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-calculate-the-average-durations-and-assemble-this-into-a/m-p/390705#M69879</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I've looked at a lot of the duration posts (covering transaction, streamstats, etc.) -- generally these deal with very particular events, so I'm having some trouble generalizing to look at all of our durations (to then chart out ranges of durations, etc).&lt;/P&gt;

&lt;P&gt;Some background:&lt;BR /&gt;
All of our events have a userId (unique GUID), and then a sessionID (counts up from 1 for every new user).&lt;BR /&gt;
The durations I am interested in are:  given each userID/sessionID combo, there should be one instance (event) where eventName=Start, and one instance where eventName=End, so duration is the timestamp of the End event - timestamp of the Start event.&lt;/P&gt;

&lt;P&gt;There is no dateTime field within our event - just using the event Timestamp in Splunk associated with each event.&lt;/P&gt;

&lt;P&gt;I would appreciate any advice on assembling this into a table/report of duration data that would cover all UserId/SessionId combos&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 15 May 2018 00:35:19 GMT</pubDate>
    <dc:creator>bhartmann</dc:creator>
    <dc:date>2018-05-15T00:35:19Z</dc:date>
    <item>
      <title>How to calculate the average durations and assemble this into a table/report of duration data that would cover all UserId/SessionId combos?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-calculate-the-average-durations-and-assemble-this-into-a/m-p/390705#M69879</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I've looked at a lot of the duration posts (covering transaction, streamstats, etc.) -- generally these deal with very particular events, so I'm having some trouble generalizing to look at all of our durations (to then chart out ranges of durations, etc).&lt;/P&gt;

&lt;P&gt;Some background:&lt;BR /&gt;
All of our events have a userId (unique GUID), and then a sessionID (counts up from 1 for every new user).&lt;BR /&gt;
The durations I am interested in are:  given each userID/sessionID combo, there should be one instance (event) where eventName=Start, and one instance where eventName=End, so duration is the timestamp of the End event - timestamp of the Start event.&lt;/P&gt;

&lt;P&gt;There is no dateTime field within our event - just using the event Timestamp in Splunk associated with each event.&lt;/P&gt;

&lt;P&gt;I would appreciate any advice on assembling this into a table/report of duration data that would cover all UserId/SessionId combos&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 00:35:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-calculate-the-average-durations-and-assemble-this-into-a/m-p/390705#M69879</guid>
      <dc:creator>bhartmann</dc:creator>
      <dc:date>2018-05-15T00:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the average durations and assemble this into a table/report of duration data that would cover all UserId/SessionId combos?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-calculate-the-average-durations-and-assemble-this-into-a/m-p/390706#M69880</link>
      <description>&lt;P&gt;Is it like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(your search)
| transaction userId sessionID startswith=start endswith=end
| stats avg(duration) by  userId sessionID 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 May 2018 01:59:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-calculate-the-average-durations-and-assemble-this-into-a/m-p/390706#M69880</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2018-05-15T01:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the average durations and assemble this into a table/report of duration data that would cover all UserId/SessionId combos?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-calculate-the-average-durations-and-assemble-this-into-a/m-p/390707#M69881</link>
      <description>&lt;P&gt;Yes, this gets me past the first big hurdle, thank you!&lt;/P&gt;

&lt;P&gt;Looks like from here I can play around with different visualization options.  I'll do some further research into putting these results into "bins" (like "&amp;lt;30 sec", "30-60 sec", etc.) to then build a histogram.&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 15:49:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-calculate-the-average-durations-and-assemble-this-into-a/m-p/390707#M69881</guid>
      <dc:creator>bhartmann</dc:creator>
      <dc:date>2018-05-15T15:49:33Z</dc:date>
    </item>
  </channel>
</rss>

