<?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: query for a list of hosts in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/query-for-a-list-of-hosts/m-p/270389#M81369</link>
    <description>&lt;P&gt;Hi DTERM,&lt;/P&gt;

&lt;P&gt;using this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count WHERE index=* OR sourcetype=* by index,sourcetype, host 
| stats values(index) AS indexes values(sourcetype) AS sourcetype by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you can list all &lt;CODE&gt;hosts&lt;/CODE&gt; sending events and you will also get a list of the &lt;CODE&gt;sourcetype&lt;/CODE&gt; and the &lt;CODE&gt;index&lt;/CODE&gt; they are sending to.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Mon, 12 Oct 2015 21:28:25 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2015-10-12T21:28:25Z</dc:date>
    <item>
      <title>query for a list of hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/query-for-a-list-of-hosts/m-p/270388#M81368</link>
      <description>&lt;P&gt;I have a list of 700+ hosts.  I need to verify if those hosts have entries in a splunk instance.  So I'm just looking to see if those hosts exist in the logs.  How can I query all hosts?  Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2015 20:43:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/query-for-a-list-of-hosts/m-p/270388#M81368</guid>
      <dc:creator>DTERM</dc:creator>
      <dc:date>2015-10-12T20:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: query for a list of hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/query-for-a-list-of-hosts/m-p/270389#M81369</link>
      <description>&lt;P&gt;Hi DTERM,&lt;/P&gt;

&lt;P&gt;using this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count WHERE index=* OR sourcetype=* by index,sourcetype, host 
| stats values(index) AS indexes values(sourcetype) AS sourcetype by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you can list all &lt;CODE&gt;hosts&lt;/CODE&gt; sending events and you will also get a list of the &lt;CODE&gt;sourcetype&lt;/CODE&gt; and the &lt;CODE&gt;index&lt;/CODE&gt; they are sending to.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2015 21:28:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/query-for-a-list-of-hosts/m-p/270389#M81369</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-10-12T21:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: query for a list of hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/query-for-a-list-of-hosts/m-p/270390#M81370</link>
      <description>&lt;P&gt;try using metadata search&lt;/P&gt;

&lt;P&gt;|metadata type=hosts&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 09:29:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/query-for-a-list-of-hosts/m-p/270390#M81370</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2015-10-13T09:29:27Z</dc:date>
    </item>
  </channel>
</rss>

