<?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: How to get percentage of 200 responses? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-percentage-of-200-responses/m-p/634584#M220456</link>
    <description>&lt;P&gt;sorry the first answer was correct,&amp;nbsp; this is a different issue&lt;BR /&gt;&lt;BR /&gt;heres my query&amp;nbsp;index="intau_workfusion" host=* "crash" | chart count by host status&lt;BR /&gt;&lt;BR /&gt;so I want to be able to display a zero if a host returns no results&lt;/P&gt;</description>
    <pubDate>Wed, 15 Mar 2023 13:18:16 GMT</pubDate>
    <dc:creator>sphiwee</dc:creator>
    <dc:date>2023-03-15T13:18:16Z</dc:date>
    <item>
      <title>How to get percentage of 200 responses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-percentage-of-200-responses/m-p/634234#M220303</link>
      <description>&lt;P&gt;I have current search&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;index="intau_workfusion" host=* sourcetype="services_status.out.log" service="HTTP/1.1" status=* | chart count by status&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when I run it and save as pie chart I am able to get the percentage of the different status code status's, but I want it in table format and I cant divide by total when doing my eval status as all the other status codes still fall under "status" how can I solve this?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 13:53:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-percentage-of-200-responses/m-p/634234#M220303</guid>
      <dc:creator>sphiwee</dc:creator>
      <dc:date>2023-03-13T13:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get percentage of 200 responses</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-percentage-of-200-responses/m-p/634237#M220305</link>
      <description>&lt;LI-CODE lang="markup"&gt;| chart count by status
| eventstats sum(count) as total
| eval percent=100*count/total&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Mar 2023 10:22:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-percentage-of-200-responses/m-p/634237#M220305</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-13T10:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get percentage of 200 responses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-percentage-of-200-responses/m-p/634565#M220448</link>
      <description>&lt;P&gt;thank you it's working, i forgot to mention that it has to display 0 for hosts that do not have any results, ive tried fillnull and its not working&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 12:19:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-percentage-of-200-responses/m-p/634565#M220448</guid>
      <dc:creator>sphiwee</dc:creator>
      <dc:date>2023-03-15T12:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get percentage of 200 responses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-percentage-of-200-responses/m-p/634569#M220450</link>
      <description>&lt;P&gt;OK that puts a different spin on it&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| chart count by host status
| addtotals
| eval "200" = 100 * '200'/Total
| fields host 200 Total
| append
    [ &amp;lt;search to list all the hosts you are interested in&amp;gt; ]
| fillnull value=0
| stats sum(*) as * by host&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 15 Mar 2023 12:38:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-percentage-of-200-responses/m-p/634569#M220450</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-15T12:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get percentage of 200 responses?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-percentage-of-200-responses/m-p/634584#M220456</link>
      <description>&lt;P&gt;sorry the first answer was correct,&amp;nbsp; this is a different issue&lt;BR /&gt;&lt;BR /&gt;heres my query&amp;nbsp;index="intau_workfusion" host=* "crash" | chart count by host status&lt;BR /&gt;&lt;BR /&gt;so I want to be able to display a zero if a host returns no results&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 13:18:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-percentage-of-200-responses/m-p/634584#M220456</guid>
      <dc:creator>sphiwee</dc:creator>
      <dc:date>2023-03-15T13:18:16Z</dc:date>
    </item>
  </channel>
</rss>

