<?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 combine 2 search results and calculate error rate? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-2-search-results-and-calculate-error-rate/m-p/266318#M80061</link>
    <description>&lt;P&gt;I am trying to determine the error rate.&lt;/P&gt;

&lt;P&gt;Total Count per URI: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=applogsprd java_class="*content.common.spring.LoggingInterceptor*” uri="*/api/v*"   | fields uri | stats Count as count,  by uri
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Error Count per URI: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=applogsprd java_class="*content.ws.rest.v1.error.ErrorHandler*" uri="*/api/v*" | fields uri | stats Count as errorCount,  by uri
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The result I'm looking for is a table:&lt;BR /&gt;
uri , totalCount, errorCount, error rate (errorCount/totalCount)&lt;/P&gt;

&lt;P&gt;I've tried appendcols, but can't seem to make that work.&lt;/P&gt;</description>
    <pubDate>Sat, 21 May 2016 08:29:45 GMT</pubDate>
    <dc:creator>haleefe</dc:creator>
    <dc:date>2016-05-21T08:29:45Z</dc:date>
    <item>
      <title>How to combine 2 search results and calculate error rate?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-2-search-results-and-calculate-error-rate/m-p/266318#M80061</link>
      <description>&lt;P&gt;I am trying to determine the error rate.&lt;/P&gt;

&lt;P&gt;Total Count per URI: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=applogsprd java_class="*content.common.spring.LoggingInterceptor*” uri="*/api/v*"   | fields uri | stats Count as count,  by uri
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Error Count per URI: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=applogsprd java_class="*content.ws.rest.v1.error.ErrorHandler*" uri="*/api/v*" | fields uri | stats Count as errorCount,  by uri
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The result I'm looking for is a table:&lt;BR /&gt;
uri , totalCount, errorCount, error rate (errorCount/totalCount)&lt;/P&gt;

&lt;P&gt;I've tried appendcols, but can't seem to make that work.&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2016 08:29:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-2-search-results-and-calculate-error-rate/m-p/266318#M80061</guid>
      <dc:creator>haleefe</dc:creator>
      <dc:date>2016-05-21T08:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine 2 search results and calculate error rate?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-combine-2-search-results-and-calculate-error-rate/m-p/266319#M80062</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=applogsprd uri="/api/v"  | stats count(eval(java_class="content.common.spring.LoggingInterceptor”)) as count count(eval(java_class="content.ws.rest.v1.error.ErrorHandler")) as error  | eval errorRate=error/count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 21 May 2016 14:45:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-combine-2-search-results-and-calculate-error-rate/m-p/266319#M80062</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-05-21T14:45:41Z</dc:date>
    </item>
  </channel>
</rss>

