<?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: Help on Transaction command!! in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-on-Transaction-command/m-p/83330#M21210</link>
    <description>&lt;P&gt;Thanks for the reply ...&lt;BR /&gt;
If i use by source,i am not getting the count.....&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2013 09:57:26 GMT</pubDate>
    <dc:creator>shri_27</dc:creator>
    <dc:date>2013-07-05T09:57:26Z</dc:date>
    <item>
      <title>Help on Transaction command!!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-on-Transaction-command/m-p/83324#M21204</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;
I want count of word "ERROR" in the group of events for which i have used transaction command!&lt;/P&gt;

&lt;P&gt;my search query is &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="*.log" | transaction startswith="Hydra is starting Control Channel" endswith="completed Setup" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now i want to count the no of times the word "ERROR" has occurred between the limits.&lt;/P&gt;

&lt;P&gt;sample log&lt;BR /&gt;
        [M2E-CSI]2013-06-11 01:19:40,924 PDT - Hydra is starting Control Channel&lt;BR /&gt;
        [M2E-CSI]2013-06-11 01:19:40,926 PDT - Error is adding AdapterJMS as Reconnectable &lt;BR /&gt;
        [M2E-CSI]2013-06-11 01:19:40,926 PDT - Error is adding AdapterJMS as Reconnectable &lt;BR /&gt;
        [M2E-CSI]2013-06-11 01:19:40,926 PDT - Error is adding AdapterJMS as Reconnectable &lt;BR /&gt;
        [M2E-CSI]2013-06-11 01:19:40,926 PDT - Error is adding AdapterJMS as Reconnectable &lt;BR /&gt;
        [M2E-CSI]2013-06-11 01:19:40,926 PDT - Error is adding AdapterJMS as Reconnectable &lt;BR /&gt;
        [M2E-CSI]2013-06-11 01:19:40,928 PDT - Error is adding AdapterJMS as Reconnectable &lt;BR /&gt;
        [M2E-CSI]2013-06-11 01:19:40,928 PDT - Error is adding AdapterJMS as Reconnectable &lt;BR /&gt;
        [M2E-CSI]2013-06-11 01:19:40,928 PDT - Error is adding AdapterJMS as Reconnectable &lt;BR /&gt;
        [M2E-CSI]2013-06-11 01:19:40,928 PDT - Error is adding AdapterJMS as Reconnectable&lt;BR /&gt;
        completed setup&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2013 10:07:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-on-Transaction-command/m-p/83324#M21204</guid>
      <dc:creator>shri_27</dc:creator>
      <dc:date>2013-07-03T10:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Transaction command!!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-on-Transaction-command/m-p/83325#M21205</link>
      <description>&lt;P&gt;I would use &lt;CODE&gt;eval&lt;/CODE&gt; to make a numeric field valued at 0 or 1 as appropriate, on the events before transaction.  This will then become a multivalued field in the transaction rows, and then you can more easily sum it up.  Granted if we're talking a really large number of errors per transaction, then you might hit some multivalued-field limits.   &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;source="*.log" | eval errorCount=if(searchmatch("ERROR"),1,0) | transaction startswith="Hydra is starting Control Channel" endswith="completed Setup" | streamstats count as rowIndex | streamstats sum(errorCount) as totalErrors by rowIndex&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2013 00:13:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-on-Transaction-command/m-p/83325#M21205</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-07-04T00:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Transaction command!!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-on-Transaction-command/m-p/83326#M21206</link>
      <description>&lt;P&gt;Hi sideview,&lt;BR /&gt;
Thanks for your response! still am getting count of word "ERROR" as 1!!, as we see in sample log we should get count as 9.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2013 04:19:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-on-Transaction-command/m-p/83326#M21206</guid>
      <dc:creator>shri_27</dc:creator>
      <dc:date>2013-07-04T04:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Transaction command!!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-on-Transaction-command/m-p/83327#M21207</link>
      <description>&lt;P&gt;Oh I think you need to add &lt;CODE&gt;mvlist=t&lt;/CODE&gt; to your transaction command.  By default mvlist is false, meaning it will only preserve a single "1" because it's only preserving distinct values.  You might also want to put a fields clause before transaction to narrow down to just the fields you'll need to minimize transaction's work preserving all the other field values if you're not going to use them. &lt;BR /&gt;
  &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Transaction"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.3/SearchReference/Transaction&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2013 05:26:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-on-Transaction-command/m-p/83327#M21207</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-07-04T05:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Transaction command!!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-on-Transaction-command/m-p/83328#M21208</link>
      <description>&lt;P&gt;Thanks for your reply, i got the correct count.&lt;BR /&gt;
But i want to display the results in the below format&lt;/P&gt;

&lt;P&gt;Source                  Number of errors&lt;BR /&gt;
file1                      12&lt;BR /&gt;
file2                      25&lt;BR /&gt;
file3                      32&lt;BR /&gt;
file4                      23&lt;/P&gt;

&lt;P&gt;This is the search Query &lt;BR /&gt;
index=foo | eval errorCount=if(searchmatch("Error"),1,0) | transaction startswith="Error" endswith="READY TO ACTIVATE" mvlist=t | streamstats count as rowIndex| eventstats sum(errorCount) as totalErrors by rowIndex&lt;/P&gt;

&lt;P&gt;Please help me..........&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2013 08:02:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-on-Transaction-command/m-p/83328#M21208</guid>
      <dc:creator>shri_27</dc:creator>
      <dc:date>2013-07-05T08:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Transaction command!!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-on-Transaction-command/m-p/83329#M21209</link>
      <description>&lt;P&gt;hello, i was just going through the answer try below&lt;BR /&gt;
index=foo | eval errorCount=if(searchmatch("Error"),1,0) | transaction startswith="Error" endswith="READY TO ACTIVATE" mvlist=t | eventstats sum(errorCount) as totalErrors by source&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2013 09:38:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-on-Transaction-command/m-p/83329#M21209</guid>
      <dc:creator>eashwar</dc:creator>
      <dc:date>2013-07-05T09:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Transaction command!!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-on-Transaction-command/m-p/83330#M21210</link>
      <description>&lt;P&gt;Thanks for the reply ...&lt;BR /&gt;
If i use by source,i am not getting the count.....&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2013 09:57:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-on-Transaction-command/m-p/83330#M21210</guid>
      <dc:creator>shri_27</dc:creator>
      <dc:date>2013-07-05T09:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Transaction command!!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-on-Transaction-command/m-p/83331#M21211</link>
      <description>&lt;P&gt;&lt;CODE&gt;index=foo | eval errorCount=if(searchmatch("Error"),1,0) | transaction startswith="Error" endswith="READY TO ACTIVATE" mvlist=t | streamstats count as rowIndex| eventstats sum(errorCount) as totalErrors by rowIndex | stats sum(totalErrors) as totalErrors by source&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2013 18:27:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-on-Transaction-command/m-p/83331#M21211</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2013-07-05T18:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Transaction command!!</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-on-Transaction-command/m-p/83332#M21212</link>
      <description>&lt;P&gt;Thanks for the reply....&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2013 10:50:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-on-Transaction-command/m-p/83332#M21212</guid>
      <dc:creator>shri_27</dc:creator>
      <dc:date>2013-07-11T10:50:05Z</dc:date>
    </item>
  </channel>
</rss>

