<?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: % failures for each day during the time range selected in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/failures-for-each-day-during-the-time-range-selected/m-p/560998#M159447</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; Thanks for the reply!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have a scenario where I need to find % failure&amp;nbsp;for each day during the time range selected,&amp;nbsp;&lt;SPAN&gt;for same index but different search term&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;% failures = A1/A2 *100&lt;/P&gt;&lt;P&gt;A1= Total number of events returned by the below query:&lt;/P&gt;&lt;P&gt;index="abc"&amp;nbsp; "searchTermForA1"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A2= Total number of events returned by the below query:&lt;/P&gt;&lt;P&gt;index="abc"&amp;nbsp; "searchTermForA2"&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jul 2021 10:31:43 GMT</pubDate>
    <dc:creator>VS0909</dc:creator>
    <dc:date>2021-07-27T10:31:43Z</dc:date>
    <item>
      <title>% failures for each day during the time range selected</title>
      <link>https://community.splunk.com/t5/Splunk-Search/failures-for-each-day-during-the-time-range-selected/m-p/560309#M159236</link>
      <description>&lt;P&gt;Need help with a Splunk query&amp;nbsp; to display % failures for each day during the time range selected&lt;/P&gt;&lt;P&gt;% failures = A1/A2 *100&lt;/P&gt;&lt;P&gt;A1= Total number of events returned by the below query:&lt;/P&gt;&lt;P&gt;index="abc"&amp;nbsp; "searchTermForA1"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A2= Total number of events returned by the below query:&lt;/P&gt;&lt;P&gt;index="xyz"&amp;nbsp; "searchTermForA2"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected Output:&lt;/P&gt;&lt;P&gt;-------Date-------|--------A1-------------|------A2----------|-----% failures-------&lt;/P&gt;&lt;P&gt;Separate rows in the result set for date 1-Jul, 2-Jul, 3-Jul, 4-Jul, 5-Jul, 6-Jul and 7-Jul, for time range selected as 1Jul to 7-Jul.&lt;/P&gt;&lt;P&gt;Please help with the query.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 09:07:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/failures-for-each-day-during-the-time-range-selected/m-p/560309#M159236</guid>
      <dc:creator>VS0909</dc:creator>
      <dc:date>2021-07-21T09:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: % failures for each day during the time range selected</title>
      <link>https://community.splunk.com/t5/Splunk-Search/failures-for-each-day-during-the-time-range-selected/m-p/560313#M159237</link>
      <description>&lt;LI-CODE lang="markup"&gt;(index="abc" "searchTermForA1") OR (index="xyz" "searchTermForA2")
| bin _time span=1d
| stats count(eval(index="abc")) as A1 count(eval(index="xyz")) as A2 by _time
| eval failures=100*A1/A2&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 21 Jul 2021 09:54:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/failures-for-each-day-during-the-time-range-selected/m-p/560313#M159237</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-07-21T09:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: % failures for each day during the time range selected</title>
      <link>https://community.splunk.com/t5/Splunk-Search/failures-for-each-day-during-the-time-range-selected/m-p/560998#M159447</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; Thanks for the reply!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have a scenario where I need to find % failure&amp;nbsp;for each day during the time range selected,&amp;nbsp;&lt;SPAN&gt;for same index but different search term&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;% failures = A1/A2 *100&lt;/P&gt;&lt;P&gt;A1= Total number of events returned by the below query:&lt;/P&gt;&lt;P&gt;index="abc"&amp;nbsp; "searchTermForA1"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A2= Total number of events returned by the below query:&lt;/P&gt;&lt;P&gt;index="abc"&amp;nbsp; "searchTermForA2"&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 10:31:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/failures-for-each-day-during-the-time-range-selected/m-p/560998#M159447</guid>
      <dc:creator>VS0909</dc:creator>
      <dc:date>2021-07-27T10:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: % failures for each day during the time range selected</title>
      <link>https://community.splunk.com/t5/Splunk-Search/failures-for-each-day-during-the-time-range-selected/m-p/561007#M159452</link>
      <description>&lt;P&gt;It will depend on what "searchTermForA1" and "searchTermForA2" actually are and possibly what your events actually look like&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 10:57:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/failures-for-each-day-during-the-time-range-selected/m-p/561007#M159452</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-07-27T10:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: % failures for each day during the time range selected</title>
      <link>https://community.splunk.com/t5/Splunk-Search/failures-for-each-day-during-the-time-range-selected/m-p/561008#M159453</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;searchTermForA1 = "A1_API_Failed"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;searchTermForA2="TESTSTRING" "&lt;A href="https://aaa.com/v1/?bbb&amp;quot;" target="_blank"&gt;https://aaa.com/v1/?bbb"&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 11:09:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/failures-for-each-day-during-the-time-range-selected/m-p/561008#M159453</guid>
      <dc:creator>VS0909</dc:creator>
      <dc:date>2021-07-27T11:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: % failures for each day during the time range selected</title>
      <link>https://community.splunk.com/t5/Splunk-Search/failures-for-each-day-during-the-time-range-selected/m-p/561013#M159457</link>
      <description>&lt;LI-CODE lang="markup"&gt;index="abc" "searchTermForA1"
| bin _time span=1d
| stats count as A1 by _time
| append [| search index="abc" "searchTermForA2"
     | bin _time span=1d
     | stats count as A2 by _time
     ]
| stats values(*) as * by _time
| eval failures=100*A1/A2&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 27 Jul 2021 11:24:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/failures-for-each-day-during-the-time-range-selected/m-p/561013#M159457</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-07-27T11:24:17Z</dc:date>
    </item>
  </channel>
</rss>

