<?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 Adding a field for the amount of minutes the failure rate is above a certain threshold in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-field-for-the-amount-of-minutes-the-failure-rate-is/m-p/574085#M200068</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the bellow search which works out the&amp;nbsp;successes, failures, success_rate, failure_rate and total however I would like to add a field to work out the&amp;nbsp;amount of minutes the failure rate is above a certain threshold for example 20% failure rate however unsure how to do that:&lt;/P&gt;&lt;P&gt;index="main" source="C:\\inetpub\\logs\\LogFiles\\*"&lt;BR /&gt;|eval Time = (time_taken/1000)|eval status=case(Time&amp;gt;20,"TimeOut",(sc_status!=200),"HTTP_Error",true(),"Success")|stats sum(Time) as sum_sec,max(Time) as max_sec,count by status,sc_status,host,_time|chart sum(count) by host,status| addcoltotals labelfield=host label="(TOTAL)"| addtotals fieldname=total|eval successes=(total-(timeout+HTTP_Error))|eval failures=(TimeOut+HTTP_Error)|eval success_rate=round((successes/total)*100,2)|eval failure_rate=round((failures/total)*100,2)|table successes failures success_rate failure_rate total&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;</description>
    <pubDate>Mon, 08 Nov 2021 21:19:34 GMT</pubDate>
    <dc:creator>joe06031990</dc:creator>
    <dc:date>2021-11-08T21:19:34Z</dc:date>
    <item>
      <title>Adding a field for the amount of minutes the failure rate is above a certain threshold</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Adding-a-field-for-the-amount-of-minutes-the-failure-rate-is/m-p/574085#M200068</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the bellow search which works out the&amp;nbsp;successes, failures, success_rate, failure_rate and total however I would like to add a field to work out the&amp;nbsp;amount of minutes the failure rate is above a certain threshold for example 20% failure rate however unsure how to do that:&lt;/P&gt;&lt;P&gt;index="main" source="C:\\inetpub\\logs\\LogFiles\\*"&lt;BR /&gt;|eval Time = (time_taken/1000)|eval status=case(Time&amp;gt;20,"TimeOut",(sc_status!=200),"HTTP_Error",true(),"Success")|stats sum(Time) as sum_sec,max(Time) as max_sec,count by status,sc_status,host,_time|chart sum(count) by host,status| addcoltotals labelfield=host label="(TOTAL)"| addtotals fieldname=total|eval successes=(total-(timeout+HTTP_Error))|eval failures=(TimeOut+HTTP_Error)|eval success_rate=round((successes/total)*100,2)|eval failure_rate=round((failures/total)*100,2)|table successes failures success_rate failure_rate total&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 21:19:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Adding-a-field-for-the-amount-of-minutes-the-failure-rate-is/m-p/574085#M200068</guid>
      <dc:creator>joe06031990</dc:creator>
      <dc:date>2021-11-08T21:19:34Z</dc:date>
    </item>
  </channel>
</rss>

