<?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: pie chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/pie-chart/m-p/541936#M153478</link>
    <description>&lt;LI-CODE lang="markup"&gt;| stats sum(errors) as errortotal by host
| eval status=if(errortotal &amp;gt; 50,"unsuccessful", "successful")
| stats count by status&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 02 Mar 2021 10:42:56 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-03-02T10:42:56Z</dc:date>
    <item>
      <title>pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/pie-chart/m-p/541927#M153474</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I got a splunk search that monitors, how many different hosts there were in the chosen timespan.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats dc(host) as hostcount&lt;/LI-CODE&gt;&lt;P&gt;Now I would like to generate a pie chart, that compares succesful hosts with the unseccesful ones. Therefore I got a field "errors". All hosts with error &amp;gt; 50 should be counted as unseccesful. The others should be counted as succesful. The pie chart should show the succesful/unsuccesful ratio.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 10:12:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/pie-chart/m-p/541927#M153474</guid>
      <dc:creator>schufi01</dc:creator>
      <dc:date>2021-03-02T10:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/pie-chart/m-p/541936#M153478</link>
      <description>&lt;LI-CODE lang="markup"&gt;| stats sum(errors) as errortotal by host
| eval status=if(errortotal &amp;gt; 50,"unsuccessful", "successful")
| stats count by status&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 02 Mar 2021 10:42:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/pie-chart/m-p/541936#M153478</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-02T10:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/pie-chart/m-p/541940#M153480</link>
      <description>&lt;P&gt;Thank you, that already helps. However I did a mistake while explaining my situation. I dont want the sum of errors to be&amp;nbsp; &amp;gt; 50. If there was one event with error &amp;gt;50 within the timespan, the host should be classified unsuccesful. The sum of errors per host is not important for me. Only if there was one single event with error &amp;gt;50. Do you understand what I mean?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 10:53:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/pie-chart/m-p/541940#M153480</guid>
      <dc:creator>schufi01</dc:creator>
      <dc:date>2021-03-02T10:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/pie-chart/m-p/541947#M153482</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults | eval _raw="host  errors
abc              
def      50               
ghi      51
abc      2      
def      50               
ghi      51" | multikv forceheader=1 | fields - _raw _time linecount


| eval unsuccessful = if(errors &amp;gt; 50, "unsuccessful", null)
| stats values(unsuccessful) as unsuccessful by host
| eval status=if(unsuccessful = "unsuccessful","unsuccessful", "successful")
| stats count by status&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 02 Mar 2021 11:21:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/pie-chart/m-p/541947#M153482</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-03-02T11:21:11Z</dc:date>
    </item>
  </channel>
</rss>

