<?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: Can we run the query for 100 or so hosts? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-we-run-the-query-for-100-or-so-hosts/m-p/502706#M195216</link>
    <description>&lt;P&gt;Unclear if you're looking for something more complex, but running the stats command BY host should split this out by host. You can also inputlookup a csv that acts as an IN clause for specific hosts. Examples:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;index name&amp;gt;  source=&amp;lt;source name&amp;gt; sourcetype=&amp;lt;sourcetype name&amp;gt; earliest=-7d MaximumProcessAddressSpace 
 | stats first(MaximumProcessAddressSpace) as AvailableMEM BY host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  index=&amp;lt;index name&amp;gt;  source=&amp;lt;source name&amp;gt; sourcetype=&amp;lt;sourcetype name&amp;gt; earliest=-7d MaximumProcessAddressSpace 
[ |inputlookup hostsICareAbout.csv
    |table host]
    | stats first(MaximumProcessAddressSpace) as AvailableMEM BY host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Do these make sense as options/answer your question?&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2019 19:52:01 GMT</pubDate>
    <dc:creator>aberkow</dc:creator>
    <dc:date>2019-12-09T19:52:01Z</dc:date>
    <item>
      <title>Can we run the query for 100 or so hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-run-the-query-for-100-or-so-hosts/m-p/502705#M195215</link>
      <description>&lt;P&gt;We have the following that runs nicely for one host  -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;index name&amp;gt; host=&amp;lt;host name&amp;gt; source=&amp;lt;source name&amp;gt; sourcetype=&amp;lt;sourcetype name&amp;gt; earliest=-7d MaximumProcessAddressSpace 
| stats first(MaximumProcessAddressSpace) as AvailableMEM 
| return AvailableMEM
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;We would like to do it for 100 or so hosts. Any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 16:47:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-run-the-query-for-100-or-so-hosts/m-p/502705#M195215</guid>
      <dc:creator>danielbb</dc:creator>
      <dc:date>2019-12-09T16:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can we run the query for 100 or so hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-we-run-the-query-for-100-or-so-hosts/m-p/502706#M195216</link>
      <description>&lt;P&gt;Unclear if you're looking for something more complex, but running the stats command BY host should split this out by host. You can also inputlookup a csv that acts as an IN clause for specific hosts. Examples:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;index name&amp;gt;  source=&amp;lt;source name&amp;gt; sourcetype=&amp;lt;sourcetype name&amp;gt; earliest=-7d MaximumProcessAddressSpace 
 | stats first(MaximumProcessAddressSpace) as AvailableMEM BY host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  index=&amp;lt;index name&amp;gt;  source=&amp;lt;source name&amp;gt; sourcetype=&amp;lt;sourcetype name&amp;gt; earliest=-7d MaximumProcessAddressSpace 
[ |inputlookup hostsICareAbout.csv
    |table host]
    | stats first(MaximumProcessAddressSpace) as AvailableMEM BY host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Do these make sense as options/answer your question?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 19:52:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-we-run-the-query-for-100-or-so-hosts/m-p/502706#M195216</guid>
      <dc:creator>aberkow</dc:creator>
      <dc:date>2019-12-09T19:52:01Z</dc:date>
    </item>
  </channel>
</rss>

