<?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 How to search all mount points on all hosts to build a report on storage? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-all-mount-points-on-all-hosts-to-build-a-report-on/m-p/154067#M43292</link>
    <description>&lt;P&gt;I am trying to run a search against all hosts, but I am having difficulty figuring out the right approach. A simplified version of what I am looking for is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype=df host=system323 mount=/var | streamstats range(storage_used) as storage_growth window=2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But ultimately I want it to search all mount points on all hosts and then send that to a chart or a report.&lt;/P&gt;

&lt;P&gt;I tried a few different approaches, but none of them gave me the expected results. I felt like I was on the right path with subsearches because it felt like the equivalent of a for loop, but it did not yield the expected results&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype=df [search index=os sourcetype=df [search index=os sourcetype=df earliest=-1d@d latest=now() | stats values(host) AS host] earliest=-1d@d latest=now() | stats values(mount) AS mount] | streamstats range(storage_used) as storage_growth window=2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I take my first search and build a report that will include all hosts and mount points?&lt;/P&gt;</description>
    <pubDate>Wed, 18 Feb 2015 11:39:16 GMT</pubDate>
    <dc:creator>fd26645</dc:creator>
    <dc:date>2015-02-18T11:39:16Z</dc:date>
    <item>
      <title>How to search all mount points on all hosts to build a report on storage?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-all-mount-points-on-all-hosts-to-build-a-report-on/m-p/154067#M43292</link>
      <description>&lt;P&gt;I am trying to run a search against all hosts, but I am having difficulty figuring out the right approach. A simplified version of what I am looking for is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype=df host=system323 mount=/var | streamstats range(storage_used) as storage_growth window=2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But ultimately I want it to search all mount points on all hosts and then send that to a chart or a report.&lt;/P&gt;

&lt;P&gt;I tried a few different approaches, but none of them gave me the expected results. I felt like I was on the right path with subsearches because it felt like the equivalent of a for loop, but it did not yield the expected results&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype=df [search index=os sourcetype=df [search index=os sourcetype=df earliest=-1d@d latest=now() | stats values(host) AS host] earliest=-1d@d latest=now() | stats values(mount) AS mount] | streamstats range(storage_used) as storage_growth window=2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I take my first search and build a report that will include all hosts and mount points?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2015 11:39:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-all-mount-points-on-all-hosts-to-build-a-report-on/m-p/154067#M43292</guid>
      <dc:creator>fd26645</dc:creator>
      <dc:date>2015-02-18T11:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to search all mount points on all hosts to build a report on storage?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-all-mount-points-on-all-hosts-to-build-a-report-on/m-p/154068#M43293</link>
      <description>&lt;P&gt;It looks like you're interested in the changes over time so off the top of my head maybe something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype=df host=* mount=* | streamstats last(storage_used) as last_storage current=f by host,mount | eval host_mount=host.":".mount | eval delta=storage_used-last_storage | timechart sum(delta) by host_mount
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Feb 2015 13:14:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-all-mount-points-on-all-hosts-to-build-a-report-on/m-p/154068#M43293</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2015-02-18T13:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to search all mount points on all hosts to build a report on storage?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-all-mount-points-on-all-hosts-to-build-a-report-on/m-p/154069#M43294</link>
      <description>&lt;P&gt;Thanks for the suggestion. &lt;CODE&gt;by host,mount&lt;/CODE&gt; has opened up a new world for me. But it seems like you have manually recreated what &lt;CODE&gt;range()&lt;/CODE&gt; is supposed to do. Does range not work for this?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2015 13:36:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-all-mount-points-on-all-hosts-to-build-a-report-on/m-p/154069#M43294</guid>
      <dc:creator>fd26645</dc:creator>
      <dc:date>2015-02-18T13:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to search all mount points on all hosts to build a report on storage?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-all-mount-points-on-all-hosts-to-build-a-report-on/m-p/154070#M43295</link>
      <description>&lt;P&gt;I'll admit upfront that I haven't used &lt;CODE&gt;range()&lt;/CODE&gt; before, however from the doc, it seems that range is always positive, instead of varying sign depending on if you have added or removed storage.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2015 19:21:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-all-mount-points-on-all-hosts-to-build-a-report-on/m-p/154070#M43295</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2015-02-18T19:21:35Z</dc:date>
    </item>
  </channel>
</rss>

