<?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: Stats StatusCode error Rate in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Stats-StatusCode-error-Rate/m-p/512622#M143786</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;. Appreciated.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;DD&lt;/P&gt;</description>
    <pubDate>Wed, 05 Aug 2020 17:23:10 GMT</pubDate>
    <dc:creator>dpdwibedy</dc:creator>
    <dc:date>2020-08-05T17:23:10Z</dc:date>
    <item>
      <title>Stats StatusCode error Rate</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-StatusCode-error-Rate/m-p/512610#M143780</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;Need help to find the&amp;nbsp; status code error rate&amp;nbsp; where&amp;nbsp; status code is &amp;gt;400.&lt;/P&gt;&lt;P&gt;I have below Query to time chart the error rate&amp;nbsp; , which works fine...&lt;/P&gt;&lt;DIV class="shared-alertcontrols-details"&gt;index=apache_core &amp;nbsp;userAgent!="nginx/*" source="*access.log*" &amp;nbsp;requestURI!="/web/app*" NOT (requestURI="/api/xyz/*" &amp;nbsp;OR requestURI="/api/yyy/*" &amp;nbsp;AND statusCode=404) &lt;SPAN&gt;earliest=-30m latest=now&amp;nbsp;&lt;/SPAN&gt;| timechart span=5m limit=0 eval((count(eval(statusCode&amp;gt;=400)) / count()) * 100) as ErrorRate&lt;/DIV&gt;&lt;DIV class="shared-alertcontrols-details"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="shared-alertcontrols-details"&gt;But , to&amp;nbsp; create an alert , I don't want the time chart&amp;nbsp; , just the&amp;nbsp; error rate&amp;nbsp; in last 30 mins.&lt;/DIV&gt;&lt;DIV class="shared-alertcontrols-details"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="shared-alertcontrols-details"&gt;the stats count with the eval statement doesn't work.&lt;/DIV&gt;&lt;DIV class="shared-alertcontrols-details"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="shared-alertcontrols-details"&gt;Thanks,&lt;/DIV&gt;&lt;DIV class="shared-alertcontrols-details"&gt;DD&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 15:56:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-StatusCode-error-Rate/m-p/512610#M143780</guid>
      <dc:creator>dpdwibedy</dc:creator>
      <dc:date>2020-08-05T15:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Stats StatusCode error Rate</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-StatusCode-error-Rate/m-p/512618#M143783</link>
      <description>&lt;P&gt;For an alert, replace &lt;FONT face="courier new,courier"&gt;timechart&lt;/FONT&gt; with &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;eval&lt;/FONT&gt;.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=apache_core  userAgent!="nginx/*" source="*access.log*"  requestURI!="/web/app*" NOT (requestURI="/api/xyz/*"  OR requestURI="/api/yyy/*"  AND statusCode=404) earliest=-30m latest=now 
| stats count(eval(statusCode&amp;gt;=400)) as errors, count as total
| eval ErrorRate = errors * 100 / total&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 16:42:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-StatusCode-error-Rate/m-p/512618#M143783</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-08-05T16:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Stats StatusCode error Rate</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-StatusCode-error-Rate/m-p/512620#M143784</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;Thanks! for&amp;nbsp; the reply . It works , but I want only "ErrorRate" to be displayed.&lt;/P&gt;&lt;P&gt;Right now , it displays like this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;errors	total	ErrorRate
19056	679878	2.8028558064829276&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 16:50:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-StatusCode-error-Rate/m-p/512620#M143784</guid>
      <dc:creator>dpdwibedy</dc:creator>
      <dc:date>2020-08-05T16:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Stats StatusCode error Rate</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-StatusCode-error-Rate/m-p/512621#M143785</link>
      <description>&lt;P&gt;Add &lt;FONT face="courier new,courier"&gt;| fields ErrorRate&lt;/FONT&gt; to the end of the query.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 17:11:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-StatusCode-error-Rate/m-p/512621#M143785</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-08-05T17:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Stats StatusCode error Rate</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-StatusCode-error-Rate/m-p/512622#M143786</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;. Appreciated.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;DD&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 17:23:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-StatusCode-error-Rate/m-p/512622#M143786</guid>
      <dc:creator>dpdwibedy</dc:creator>
      <dc:date>2020-08-05T17:23:10Z</dc:date>
    </item>
  </channel>
</rss>

