<?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: analyzing transactions based on the values in the raw data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/analyzing-transactions-based-on-the-values-in-the-raw-data/m-p/47652#M11379</link>
    <description>&lt;P&gt;What do you get back from your query? Does just &lt;CODE&gt;source=xxxx | transaction user_id keeporphans=f maxspan=-1 maxpause=-1 startswith="BeginTour" endswith="EndTour"&lt;/CODE&gt; work?&lt;/P&gt;</description>
    <pubDate>Tue, 04 Sep 2012 15:31:11 GMT</pubDate>
    <dc:creator>dart</dc:creator>
    <dc:date>2012-09-04T15:31:11Z</dc:date>
    <item>
      <title>analyzing transactions based on the values in the raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/analyzing-transactions-based-on-the-values-in-the-raw-data/m-p/47651#M11378</link>
      <description>&lt;P&gt;Is there anyway to analyze trans data in SplunkStorm?&lt;BR /&gt;
Here is what I have:&lt;BR /&gt;
transaction is  defined by   beginTour and EndTour by user_id&lt;BR /&gt;
Within a transaction, there could be any number of activties (events) taken by user_id&lt;BR /&gt;&lt;BR /&gt;
I want to be able to average distinct number of activities by user_id when taking tours  ( a user_id may have many transactions/tours, so each transaction having  distinct number of activities, then averaging that dc(activites) number accross transactions by user_id).&lt;/P&gt;

&lt;P&gt;Also, is it possible to calculate the avg time spent on each event by user_id for each tour? &lt;BR /&gt;
Is there anyway to define transaction within transaction and be able to add a field to the outer trans for avg  inner  trans duration?&lt;/P&gt;

&lt;P&gt;even though the extract caused the fields to be recognized by Splunk and the user_id under interesting fields shows up with 14 values, still when I do the following, it only comes back with user NULL and one avg value.  I was hoping to get avg(duration) calculated for each user_id based on the trans duration values:&lt;/P&gt;

&lt;P&gt;source=xxxx | transaction user_id keeporphans=f maxspan=-1 maxpause=-1 startswith="BeginTour" endswith="EndTour" mvraw=t delim="," mvlist=user_id |&lt;BR /&gt;
extract pairdelim=",", kvdelim=":" | stats avg(duration) AS avg_dur by user_id&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:21:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/analyzing-transactions-based-on-the-values-in-the-raw-data/m-p/47651#M11378</guid>
      <dc:creator>fere</dc:creator>
      <dc:date>2020-09-28T12:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: analyzing transactions based on the values in the raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/analyzing-transactions-based-on-the-values-in-the-raw-data/m-p/47652#M11379</link>
      <description>&lt;P&gt;What do you get back from your query? Does just &lt;CODE&gt;source=xxxx | transaction user_id keeporphans=f maxspan=-1 maxpause=-1 startswith="BeginTour" endswith="EndTour"&lt;/CODE&gt; work?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2012 15:31:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/analyzing-transactions-based-on-the-values-in-the-raw-data/m-p/47652#M11379</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2012-09-04T15:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: analyzing transactions based on the values in the raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/analyzing-transactions-based-on-the-values-in-the-raw-data/m-p/47653#M11380</link>
      <description>&lt;P&gt;Found out about mvlist and all the eval functions for mvlist and got it to work.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2012 17:04:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/analyzing-transactions-based-on-the-values-in-the-raw-data/m-p/47653#M11380</guid>
      <dc:creator>fere</dc:creator>
      <dc:date>2012-09-11T17:04:27Z</dc:date>
    </item>
  </channel>
</rss>

