<?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 write a search to count variations (different order and number) of transaction events? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-count-variations-different-order-and/m-p/281265#M84842</link>
    <description>&lt;P&gt;I need a search to count variations of event occurance. Lets say we have events:&lt;BR /&gt;
A,B,C,D,E which are combined into transaction by sessionid.&lt;BR /&gt;
Event A is a start&lt;BR /&gt;
Event E is an end.&lt;/P&gt;

&lt;P&gt;In time, I have to search for transactions which have a different order and number of middle steps:&lt;BR /&gt;
ABCDE&lt;BR /&gt;
ACBDE &lt;BR /&gt;
ABCDBCDE&lt;BR /&gt;
and so on...&lt;/P&gt;

&lt;P&gt;I need a stats count how many all of variations have occurred... I cannot predict all of the possible variations as steps are repeating between start and stop.&lt;/P&gt;

&lt;P&gt;I need a table:&lt;BR /&gt;
VARIANT - COUNT&lt;BR /&gt;
ABCDE - 10&lt;BR /&gt;
ABBE - 3&lt;BR /&gt;
etc...&lt;/P&gt;

&lt;P&gt;Any useful searches/commands I can try?&lt;/P&gt;</description>
    <pubDate>Fri, 16 Oct 2015 09:09:52 GMT</pubDate>
    <dc:creator>adamguzek</dc:creator>
    <dc:date>2015-10-16T09:09:52Z</dc:date>
    <item>
      <title>How to write a search to count variations (different order and number) of transaction events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-count-variations-different-order-and/m-p/281265#M84842</link>
      <description>&lt;P&gt;I need a search to count variations of event occurance. Lets say we have events:&lt;BR /&gt;
A,B,C,D,E which are combined into transaction by sessionid.&lt;BR /&gt;
Event A is a start&lt;BR /&gt;
Event E is an end.&lt;/P&gt;

&lt;P&gt;In time, I have to search for transactions which have a different order and number of middle steps:&lt;BR /&gt;
ABCDE&lt;BR /&gt;
ACBDE &lt;BR /&gt;
ABCDBCDE&lt;BR /&gt;
and so on...&lt;/P&gt;

&lt;P&gt;I need a stats count how many all of variations have occurred... I cannot predict all of the possible variations as steps are repeating between start and stop.&lt;/P&gt;

&lt;P&gt;I need a table:&lt;BR /&gt;
VARIANT - COUNT&lt;BR /&gt;
ABCDE - 10&lt;BR /&gt;
ABBE - 3&lt;BR /&gt;
etc...&lt;/P&gt;

&lt;P&gt;Any useful searches/commands I can try?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 09:09:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-count-variations-different-order-and/m-p/281265#M84842</guid>
      <dc:creator>adamguzek</dc:creator>
      <dc:date>2015-10-16T09:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to count variations (different order and number) of transaction events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-count-variations-different-order-and/m-p/281266#M84843</link>
      <description>&lt;P&gt;Yes, check out the &lt;CODE&gt;cluster&lt;/CODE&gt; command:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/SearchReference/cluster"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/SearchReference/cluster&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 14:32:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-count-variations-different-order-and/m-p/281266#M84843</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-10-16T14:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to count variations (different order and number) of transaction events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-count-variations-different-order-and/m-p/281267#M84844</link>
      <description>&lt;P&gt;Try this!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search | transaction  startswith=A endswith=E|eval VARIANT=mvjoin(event, "-")|stats count by VARIANT
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Oct 2015 17:16:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-count-variations-different-order-and/m-p/281267#M84844</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2015-10-16T17:16:47Z</dc:date>
    </item>
  </channel>
</rss>

