<?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: Group the events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Group-the-events/m-p/63931#M180344</link>
    <description>&lt;P&gt;Using &lt;CODE&gt;transaction&lt;/CODE&gt; like Ayn suggests; you'll get multivalued fields. Assuming that you have a field called 'status' which in your case contains either 'error' or 'ok', you could do (after the transaction) &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval err = mvfilter(match(status, "error")) |  eval err_count = mvcount(err)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If all the events in the transaction contains &lt;CODE&gt;status=error&lt;/CODE&gt;, you could use the &lt;CODE&gt;eventcount&lt;/CODE&gt; field that is created by the &lt;CODE&gt;transaction&lt;/CODE&gt;. Perhaps subtract 1 from the eventcount, if the 'READY TO ACTIVATE' event does not contain 'error'.&lt;/P&gt;

&lt;P&gt;Without sample events, it is a lot harder to give you good advice. &lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2013 07:30:22 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-06-14T07:30:22Z</dc:date>
    <item>
      <title>Group the events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-the-events/m-p/63927#M180340</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have a log file , i want to search events for first occurrence of word "error" in that file, till the first occurrence of word "READY TO ACTIVATE".&lt;/P&gt;

&lt;P&gt;I want to list all the events between first occurrence of "error" and first occurrence of "READY TO ACTIVATE".&lt;/P&gt;

&lt;P&gt;Please help me ..........&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2013 06:26:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-the-events/m-p/63927#M180340</guid>
      <dc:creator>ncbshiva</dc:creator>
      <dc:date>2013-06-14T06:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Group the events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-the-events/m-p/63928#M180341</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I have a log file , i want to evaluate count of errors from line 1 of the file till the first occurrence of "READY TO ACTIVATE" phrase.&lt;/P&gt;

&lt;P&gt;Please help me ..........&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2013 06:43:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-the-events/m-p/63928#M180341</guid>
      <dc:creator>ncbshiva</dc:creator>
      <dc:date>2013-06-14T06:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Group the events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-the-events/m-p/63929#M180342</link>
      <description>&lt;P&gt;Use &lt;CODE&gt;transaction&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | transaction startswith="error" endswith="READY TO ACTIVATE"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jun 2013 07:00:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-the-events/m-p/63929#M180342</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-06-14T07:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Group the events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-the-events/m-p/63930#M180343</link>
      <description>&lt;P&gt;i have used the same, but i need to evaluate the count of "error" from line 1 till the first occurrence of "READY TO ACTIVATE"&lt;/P&gt;

&lt;P&gt;Thanks in advance.......&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2013 07:04:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-the-events/m-p/63930#M180343</guid>
      <dc:creator>ncbshiva</dc:creator>
      <dc:date>2013-06-14T07:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Group the events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-the-events/m-p/63931#M180344</link>
      <description>&lt;P&gt;Using &lt;CODE&gt;transaction&lt;/CODE&gt; like Ayn suggests; you'll get multivalued fields. Assuming that you have a field called 'status' which in your case contains either 'error' or 'ok', you could do (after the transaction) &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval err = mvfilter(match(status, "error")) |  eval err_count = mvcount(err)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If all the events in the transaction contains &lt;CODE&gt;status=error&lt;/CODE&gt;, you could use the &lt;CODE&gt;eventcount&lt;/CODE&gt; field that is created by the &lt;CODE&gt;transaction&lt;/CODE&gt;. Perhaps subtract 1 from the eventcount, if the 'READY TO ACTIVATE' event does not contain 'error'.&lt;/P&gt;

&lt;P&gt;Without sample events, it is a lot harder to give you good advice. &lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2013 07:30:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-the-events/m-p/63931#M180344</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-06-14T07:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Group the events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-the-events/m-p/63932#M180345</link>
      <description>&lt;P&gt;Hi kristian.kolb&lt;/P&gt;

&lt;P&gt;I am not getting the count of word "error" correctly, If there are two "error" words in the log file , its giving the count as one only....&lt;/P&gt;

&lt;P&gt;please help me....&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 12:44:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-the-events/m-p/63932#M180345</guid>
      <dc:creator>ncbshiva</dc:creator>
      <dc:date>2013-07-02T12:44:45Z</dc:date>
    </item>
  </channel>
</rss>

