<?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 max value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Pie-chart-max-value/m-p/165738#M47126</link>
    <description>&lt;P&gt;Thats exactly what I'm trying to do actually. How would I go about building that?&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jul 2014 16:24:27 GMT</pubDate>
    <dc:creator>lbogle</dc:creator>
    <dc:date>2014-07-31T16:24:27Z</dc:date>
    <item>
      <title>Pie chart max value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Pie-chart-max-value/m-p/165736#M47124</link>
      <description>&lt;P&gt;Hello Splunkers,&lt;BR /&gt;
I'm working on a pie chart where I am trying to show the total number of assets and then show that same list of assets that has a particular software package installed. Both sets of info come from two .csv files specified by source=*.csv. I get the numbers correctly by doing the following:&lt;/P&gt;

&lt;P&gt;mysearch | | stats dc(HostName) by source&lt;/P&gt;

&lt;P&gt;The chart correctly shows:&lt;BR /&gt;
Total_Mac_Assets = 608&lt;BR /&gt;
Total_Mac_Assets w/_DG_Installed = 475&lt;/P&gt;

&lt;P&gt;However the Total_Mac_Assets needs to be the full “Pie” in the pie chart and the 475 needs to be a slice of that total.&lt;/P&gt;

&lt;P&gt;In the pie chart currently generated, it looks like 608 is half and 475 is half but 133 short of 608, if that makes sense. For example, if I were to have the software installed across all assets, the pie would be split evenly down the middle.&lt;BR /&gt;
How do I set the 100% range of the pie chart to equal Total_Mac_Assets = 608 and then have Total_Mac_Assets_w/_DG_Installed = 475 be a slice of that total?&lt;/P&gt;

&lt;P&gt;Thanks for any assistance.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:13:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Pie-chart-max-value/m-p/165736#M47124</guid>
      <dc:creator>lbogle</dc:creator>
      <dc:date>2020-09-28T17:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart max value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Pie-chart-max-value/m-p/165737#M47125</link>
      <description>&lt;P&gt;In my knowledge, the pie chart doesn't provide options to overlap slices. If Total_Mac_Assets acquire 100% of the pie chart then Total_Mac_Assets_w/_DG_Installed will be overlapping with it and that will not work. One workaround that you can try would be to calculate and plot Total_Mac_Assets_w/o_DG_Installed which will be Total_Mac_Assets-Total_Mac_Assets_w/_DG_Installed, so that Total_Mac_Assets_w/_DG_Installed and Total_Mac_Assets_w/o_DG_Installed will total 100% (608). You can set chart title as "Mac_Assets".&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:13:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Pie-chart-max-value/m-p/165737#M47125</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-28T17:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart max value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Pie-chart-max-value/m-p/165738#M47126</link>
      <description>&lt;P&gt;Thats exactly what I'm trying to do actually. How would I go about building that?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 16:24:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Pie-chart-max-value/m-p/165738#M47126</guid>
      <dc:creator>lbogle</dc:creator>
      <dc:date>2014-07-31T16:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart max value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Pie-chart-max-value/m-p/165739#M47127</link>
      <description>&lt;P&gt;This is a sample implementation (run anywhere) with similar logic. Adjust this per your scenario.&lt;/P&gt;

&lt;P&gt;If this is your current search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal log_level="ERROR" OR log_level="INFO" | stats count by log_level 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Output:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;log_level   count
..................
ERROR       130
WARN        200
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should be updated search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal log_level="ERROR" OR log_level="INFO" | eval log_level=if(log_level="ERROR", "ERROR","No ERROR") | stats count by log_level 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Output:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;log_level   count
..................
ERROR       130
NO ERROR     70
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Jul 2014 17:34:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Pie-chart-max-value/m-p/165739#M47127</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-07-31T17:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart max value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Pie-chart-max-value/m-p/165740#M47128</link>
      <description>&lt;P&gt;Are you possibly looking for Sunburst charts? Basically two-dimensional pie charts: &lt;A href="http://apps.splunk.com/app/1613/"&gt;http://apps.splunk.com/app/1613/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2014 22:47:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Pie-chart-max-value/m-p/165740#M47128</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-08-01T22:47:24Z</dc:date>
    </item>
  </channel>
</rss>

