<?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 syntax for disk use in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Pie-chart-syntax-for-disk-use/m-p/343293#M101645</link>
    <description>&lt;P&gt;A pie chart is only going to work with one value broken out by label, and needs to be split by that label.  Try something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="app-1" source="df" | timechart max(storage_used) BY filesystem
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 12 Dec 2017 17:01:17 GMT</pubDate>
    <dc:creator>micahkemp</dc:creator>
    <dc:date>2017-12-12T17:01:17Z</dc:date>
    <item>
      <title>Pie chart syntax for disk use</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Pie-chart-syntax-for-disk-use/m-p/343292#M101644</link>
      <description>&lt;P&gt;I have the values I just don't have the syntax.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="app-1" source="df" | stats max(storage_used) as storage_used by host 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where do I include: max(TotalMBytes)?&lt;/P&gt;

&lt;P&gt;Not sure how to convert that into a pie chart.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 16:04:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Pie-chart-syntax-for-disk-use/m-p/343292#M101644</guid>
      <dc:creator>fsrodriguez</dc:creator>
      <dc:date>2017-12-12T16:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart syntax for disk use</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Pie-chart-syntax-for-disk-use/m-p/343293#M101645</link>
      <description>&lt;P&gt;A pie chart is only going to work with one value broken out by label, and needs to be split by that label.  Try something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="app-1" source="df" | timechart max(storage_used) BY filesystem
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Dec 2017 17:01:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Pie-chart-syntax-for-disk-use/m-p/343293#M101645</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2017-12-12T17:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart syntax for disk use</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Pie-chart-syntax-for-disk-use/m-p/343294#M101646</link>
      <description>&lt;P&gt;HI @fsrodriguez,&lt;/P&gt;

&lt;P&gt;With your provided search I think you are looking for like below search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="app-1" source="df" 
| stats max(storage_used) as storage_used max(TotalMBytes) as TotalMBytes
| eval storage_unused=(TotalMBytes-storage_used) 
| table storage_used storage_unused 
| transpose
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Convert viz to a pie chart. Bytes to GB is pending in this search.&lt;/P&gt;

&lt;P&gt;Another thing I'm guessing you want the latest status of disk volume of the particular host. So can you please try the search?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="app-1" source="df" | head 1 |
| eval storage_unused=(TotalMBytes-storage_used) 
| table storage_used storage_unused 
| transpose
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Convert viz to a pie chart. Bytes to GB is pending in this search.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 17:20:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Pie-chart-syntax-for-disk-use/m-p/343294#M101646</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-12-12T17:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Pie chart syntax for disk use</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Pie-chart-syntax-for-disk-use/m-p/343295#M101647</link>
      <description>&lt;P&gt;wow that looks awesome! Thank you soo much! I appreciate the help!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 18:13:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Pie-chart-syntax-for-disk-use/m-p/343295#M101647</guid>
      <dc:creator>fsrodriguez</dc:creator>
      <dc:date>2017-12-12T18:13:07Z</dc:date>
    </item>
  </channel>
</rss>

