<?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: Need help with getting count of successful events after failure in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-count-of-successful-events-after-failure/m-p/630333#M218984</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253738"&gt;@Pjyoti&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can use streamstats to count successful downloads by resetting on fail.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.3/SearchReference/Streamstats#The_reset_on_change_argument" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.3/SearchReference/Streamstats#The_reset_on_change_argument&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please try below sample;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=ty_ss 
| streamstats count as success_count by http_response reset_after=(http_response=500)  &lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 09 Feb 2023 17:08:26 GMT</pubDate>
    <dc:creator>scelikok</dc:creator>
    <dc:date>2023-02-09T17:08:26Z</dc:date>
    <item>
      <title>How to get count of successful events after failure?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-count-of-successful-events-after-failure/m-p/630315#M218979</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a use case where in i want to find out how many download api failed for a given document and how many out of the failed were successful after subsequent call&lt;/P&gt;
&lt;P&gt;I have no clue how to search this on splunk&lt;/P&gt;
&lt;P&gt;right now I am finding the failed ones using the below query&amp;nbsp;&lt;/P&gt;
&lt;P&gt;index=ty_ss “download/docIds?=“ “500” &amp;nbsp;| Rex “docId=(?&amp;lt;docId&amp;gt;.*)” | eval event_time = strftime() | table docIds, event_time&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 18:57:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-count-of-successful-events-after-failure/m-p/630315#M218979</guid>
      <dc:creator>Pjyoti</dc:creator>
      <dc:date>2023-02-09T18:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with getting count of successful events after failure</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-count-of-successful-events-after-failure/m-p/630333#M218984</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253738"&gt;@Pjyoti&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can use streamstats to count successful downloads by resetting on fail.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.3/SearchReference/Streamstats#The_reset_on_change_argument" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.3/SearchReference/Streamstats#The_reset_on_change_argument&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please try below sample;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=ty_ss 
| streamstats count as success_count by http_response reset_after=(http_response=500)  &lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 09 Feb 2023 17:08:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-count-of-successful-events-after-failure/m-p/630333#M218984</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-02-09T17:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with getting count of successful events after failure</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-count-of-successful-events-after-failure/m-p/630485#M219048</link>
      <description>&lt;P&gt;I think my question was not clear so the requirement here is that I need to find the below things :&lt;/P&gt;&lt;P&gt;1. How many documents failed with 500 error which is straightforward&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. how many documents failed first time for all users and after how many retries were they successful (if they were) or were they not retried at all ?&lt;/P&gt;&lt;P&gt;I am stuck at the second case&lt;/P&gt;&lt;P&gt;i am not understanding how do I group the document and show a retry number if it wasn’t retried at all then it should give 0 if the retries didn’t work they should give some other result and if the retries were successful after how many attempts were they successful.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 17:03:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-count-of-successful-events-after-failure/m-p/630485#M219048</guid>
      <dc:creator>Pjyoti</dc:creator>
      <dc:date>2023-02-10T17:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with getting count of successful events after failure</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-count-of-successful-events-after-failure/m-p/630486#M219049</link>
      <description>&lt;P&gt;By successful I mean the api returned 200 for that doc for that user&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 17:04:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-count-of-successful-events-after-failure/m-p/630486#M219049</guid>
      <dc:creator>Pjyoti</dc:creator>
      <dc:date>2023-02-10T17:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get count of successful events after failure?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-count-of-successful-events-after-failure/m-p/630539#M219062</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253738"&gt;@Pjyoti&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share a few log lines? Because it seems user and API return values should be extracted before analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2023 09:20:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-count-of-successful-events-after-failure/m-p/630539#M219062</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-02-11T09:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get count of successful events after failure?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-count-of-successful-events-after-failure/m-p/630543#M219065</link>
      <description>&lt;P&gt;sample logs attached&lt;/P&gt;</description>
      <pubDate>Sat, 11 Feb 2023 16:12:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-count-of-successful-events-after-failure/m-p/630543#M219065</guid>
      <dc:creator>Pjyoti</dc:creator>
      <dc:date>2023-02-11T16:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get count of successful events after failure?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-count-of-successful-events-after-failure/m-p/631440#M219312</link>
      <description>&lt;P&gt;Hi any update ??&lt;/P&gt;&lt;P&gt;Can someone help&lt;/P&gt;</description>
      <pubDate>Sat, 18 Feb 2023 15:58:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-count-of-successful-events-after-failure/m-p/631440#M219312</guid>
      <dc:creator>Pjyoti</dc:creator>
      <dc:date>2023-02-18T15:58:54Z</dc:date>
    </item>
  </channel>
</rss>

