<?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: I want to find the percentage of success rate over the total amount events need help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/I-want-to-find-the-percentage-of-success-rate-over-the-total/m-p/696282#M236652</link>
    <description>&lt;P&gt;Thanks, it worked! All I have to do is convert it to a percentage and we're all good to go. I'll pass along the karma.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Aug 2024 14:29:07 GMT</pubDate>
    <dc:creator>OgoNARA</dc:creator>
    <dc:date>2024-08-14T14:29:07Z</dc:date>
    <item>
      <title>I want to find the percentage of success rate over the total amount events need help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-want-to-find-the-percentage-of-success-rate-over-the-total/m-p/696272#M236645</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, I got an issue where I have a log and the log has a field called ERROR_MESSAGES for each event that ends in an error. The other events that have a NULL value under ERROR_MESSAGES are successful events. So, I'm trying to get a percentage of the successful events over the total events. Ths is the query I built but when I run the search success rate comes back with no percentage value and I know there's 338/3190 successful events. Any help would go along way I've been struggling I feel like my SPL is getting better but man this one has me scratching my head.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| inputlookup fm4143_3d.csv
| stats count(FLOW_ID) as total
| appendpipe
[| inputlookup fm4143_3d.csv
| where isnull(ERROR_MESSAGE)
| stats count as success]
| eval success_rate = ((success/total)*100)
| fields success_rate&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 13:39:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-want-to-find-the-percentage-of-success-rate-over-the-total/m-p/696272#M236645</guid>
      <dc:creator>OgoNARA</dc:creator>
      <dc:date>2024-08-14T13:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: I want to find the percentage of success rate over the total amount events need help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-want-to-find-the-percentage-of-success-rate-over-the-total/m-p/696276#M236648</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup fm4143_3d.csv
| stats count(FLOW_ID) as total count(ERROR_MESSAGE) as fail
| eval success = total - fail
| eval success_rate = 100 * success/total
| fields success_rate&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 14 Aug 2024 13:38:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-want-to-find-the-percentage-of-success-rate-over-the-total/m-p/696276#M236648</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-08-14T13:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: I want to find the percentage of success rate over the total amount events need help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/I-want-to-find-the-percentage-of-success-rate-over-the-total/m-p/696282#M236652</link>
      <description>&lt;P&gt;Thanks, it worked! All I have to do is convert it to a percentage and we're all good to go. I'll pass along the karma.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 14:29:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/I-want-to-find-the-percentage-of-success-rate-over-the-total/m-p/696282#M236652</guid>
      <dc:creator>OgoNARA</dc:creator>
      <dc:date>2024-08-14T14:29:07Z</dc:date>
    </item>
  </channel>
</rss>

