<?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: Chart disk space over multiple servers in one pie chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284246#M85935</link>
    <description>&lt;P&gt;using NOT eventtype=df excludes all of the data I am interested in so its not useful.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Feb 2016 12:39:36 GMT</pubDate>
    <dc:creator>jackpal</dc:creator>
    <dc:date>2016-02-18T12:39:36Z</dc:date>
    <item>
      <title>Chart disk space over multiple servers in one pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284243#M85932</link>
      <description>&lt;P&gt;I need to track disk space over multiple servers in one pie chart.  I want to match all volumes with terms in them according to product lines.  In my case this is GAS, GEN, STM.  The volumes are spread out across multiple machines.  I created an event type for each volume match in "df".  My search is below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os OR index=main sourcetype=df host=aaaa OR host=bbbb OR host=cccc OR host=dddd eventtype=*Volume NOT eventtype=DBAVolume NOT eventtype=T4STempVolume | strcat host '@' Filesystem Host_FileSystem    | chart  avg(UsePct) by eventtype | rename  avg(UsePct) as %Used
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My issue is that "df" is an event type so it takes up a good part of the chart.  &lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 20:47:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284243#M85932</guid>
      <dc:creator>jackpal</dc:creator>
      <dc:date>2016-02-17T20:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Chart disk space over multiple servers in one pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284244#M85933</link>
      <description>&lt;P&gt;What happens when you add &lt;CODE&gt;NOT eventtype=df&lt;/CODE&gt; to your base search?&lt;/P&gt;

&lt;P&gt;Can we see some sample data and output?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 21:40:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284244#M85933</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-02-17T21:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Chart disk space over multiple servers in one pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284245#M85934</link>
      <description>&lt;P&gt;Also, what is the definition of the eventtypes you're using? You may be able to write an eval-case to generate a new field denoting volumes accordingly.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 21:59:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284245#M85934</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-17T21:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Chart disk space over multiple servers in one pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284246#M85935</link>
      <description>&lt;P&gt;using NOT eventtype=df excludes all of the data I am interested in so its not useful.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 12:39:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284246#M85935</guid>
      <dc:creator>jackpal</dc:creator>
      <dc:date>2016-02-18T12:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Chart disk space over multiple servers in one pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284247#M85936</link>
      <description>&lt;P&gt;Event definition for one volume is as follows:&lt;BR /&gt;&lt;BR /&gt;
index=os OR index=main sourcetype=df host=aaaa OR host=bbbb OR host=cccc OR host=dddd Filesystem="/dev/mapper/&lt;EM&gt;gas&lt;/EM&gt;" &lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 12:44:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284247#M85936</guid>
      <dc:creator>jackpal</dc:creator>
      <dc:date>2016-02-18T12:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Chart disk space over multiple servers in one pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284248#M85937</link>
      <description>&lt;P&gt;I've seen queries perform better without eventtype being used, so I would suggest (for this query at least) to remove eventtype and use it definition directly. Something like this (change the expansion of eventtype per your environment)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=os OR index=main sourcetype=df host=aaaa OR host=bbbb OR host=cccc OR host=dddd 
(Filesystem="/dev/*" ) NOT (Filesystem="/dev/mapper/dba" OR Filesystem="/dev/mapper/t4stemp" ) | strcat host '@' Filesystem Host_FileSystem    | chart  avg(UsePct) by Host_FileSystem  | rename  avg(UsePct) as %Used
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;To group similar FileSystem into one category (similar to your event type definition), try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  index=os OR index=main sourcetype=df host=aaaa OR host=bbbb OR host=cccc OR host=dddd 
    (Filesystem="/dev/*" ) NOT (Filesystem="/dev/mapper/dba" OR Filesystem="/dev/mapper/t4stemp" ) | strcat host '@' Filesystem Host_FileSystem    | chart  avg(UsePct) as avgUsePct by Host_FileSystem  | eval FileSystem=case(like(Host_FileSystem,"%@/dev/mapper/gas%), "GasVolume", like(Host_FileSystem,"%@/dev/mapper/cadbas%), "CADBASVolume") | stats avg(avgUsePct) as "%Used" by FileSystem
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please check the values for Filesystem in &lt;CODE&gt;case&lt;/CODE&gt; per your situation and add more conditions.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 15:27:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284248#M85937</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-18T15:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Chart disk space over multiple servers in one pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284249#M85938</link>
      <description>&lt;P&gt;Thanks and understood but using Host_FileSystem now breaks out each volume when the point of the report is roll them all up under their own category.  The resulting pie chart now has each individual volume listed (which is quite a bit of them)&lt;BR /&gt;&lt;BR /&gt;
Events sample now (too many to list:&lt;BR /&gt;
1   aaaa/dev/mapper/tcprgas002vg-tcprgas002vol  94.000000&lt;BR /&gt;
2   aaaa/dev/mapper/tcprgas003vg-tcprgas003vol  100.000000&lt;BR /&gt;
3   aaaa/dev/mapper/tcprgas005vg-tcprgas005vol  60.000000&lt;BR /&gt;
4   aaaa/dev/mapper/tcprgas006vg-tcprgas006vol  1.000000 &lt;/P&gt;

&lt;P&gt;Events sample before when broken out by event type:&lt;BR /&gt;
1   CADBASVolume    1.000000&lt;BR /&gt;
2   GasVolume   88.461538&lt;BR /&gt;
3   GeneratorVolume     44.000000&lt;BR /&gt;
4   SPGVolume   85.333333&lt;BR /&gt;
5   SteamVolume     49.666667&lt;BR /&gt;
6   df  81.698113 &lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 16:09:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284249#M85938</guid>
      <dc:creator>jackpal</dc:creator>
      <dc:date>2016-02-18T16:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Chart disk space over multiple servers in one pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284250#M85939</link>
      <description>&lt;P&gt;Well, that's the reason I asked for event type definition (Settings-&amp;gt;Event types -&amp;gt; Your event type [Search string]), which can be used in a case statatement to summarize this Host_FileSystem into logical names similar to your event types.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 17:13:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284250#M85939</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-02-18T17:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Chart disk space over multiple servers in one pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284251#M85940</link>
      <description>&lt;P&gt;Sorry I thought you saw that in one of the above posts.   &lt;/P&gt;

&lt;P&gt;index=os OR index=main sourcetype=df host=aaaa OR host=bbbb OR host=cccc OR host=dddd Filesystem="/dev/mapper/gas" &lt;/P&gt;

&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 17:59:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284251#M85940</guid>
      <dc:creator>jackpal</dc:creator>
      <dc:date>2016-02-18T17:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Chart disk space over multiple servers in one pie chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284252#M85941</link>
      <description>&lt;P&gt;With some extra help I was able to do the following.  Thanks to all for their help on this thread.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype=df host=aaaa OR host=bbbb 
filesystem="/dev/mapper/tcpr*" |
eval CPD_Disk=case(
filesystem LIKE "/dev/mapper/tcprgas%", "Gas Volume",
filesystem LIKE "/dev/mapper/tcprcadbas%", "CADBAS Volume",
filesystem LIKE "/dev/mapper/tcprspg%", "SPG Volume",
filesystem LIKE "/dev/mapper/tcprgen%", "Generator Volume",
filesystem LIKE "/dev/mapper/tcprstm%", "Steam Volume"
)
| chart eval(sum(UsedMBytes)/1024/1024) as TerraBytes by CPD_Disk
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Mar 2016 19:04:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Chart-disk-space-over-multiple-servers-in-one-pie-chart/m-p/284252#M85941</guid>
      <dc:creator>jackpal</dc:creator>
      <dc:date>2016-03-22T19:04:09Z</dc:date>
    </item>
  </channel>
</rss>

