<?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: Report Showing How Many Hosts Per Index in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36689#M699</link>
    <description>&lt;P&gt;what does your search currently look like?&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2013 16:18:16 GMT</pubDate>
    <dc:creator>bmacias84</dc:creator>
    <dc:date>2013-05-16T16:18:16Z</dc:date>
    <item>
      <title>Report Showing How Many Hosts Per Index</title>
      <link>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36688#M698</link>
      <description>&lt;P&gt;I have been trying, but I can't get it to work.  &lt;/P&gt;

&lt;P&gt;I basically want a table that shows the index in Column A, and how many hosts are in that index in Column B.  How would I go about this?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 15:42:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36688#M698</guid>
      <dc:creator>aferone</dc:creator>
      <dc:date>2013-05-16T15:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Report Showing How Many Hosts Per Index</title>
      <link>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36689#M699</link>
      <description>&lt;P&gt;what does your search currently look like?&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 16:18:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36689#M699</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-05-16T16:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Report Showing How Many Hosts Per Index</title>
      <link>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36690#M700</link>
      <description>&lt;P&gt;@aferone,&lt;/P&gt;

&lt;P&gt;Try this.  keep in mind you are searching all event and indexs with this query.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
index=* | dedup host, index | table index, host&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps or gets you started.  Dont forget to accept and vote answers that help.&lt;/P&gt;

&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 16:36:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36690#M700</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-05-16T16:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Report Showing How Many Hosts Per Index</title>
      <link>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36691#M701</link>
      <description>&lt;P&gt;You could try this over all time, but it can take a long time:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metasearch | stats dc(host) by index
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 May 2013 17:00:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36691#M701</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2013-05-16T17:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Report Showing How Many Hosts Per Index</title>
      <link>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36692#M702</link>
      <description>&lt;P&gt;I was hoping for something quicker, like in metadata.  Searching every record just isn't feasible.  But thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 17:36:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36692#M702</guid>
      <dc:creator>aferone</dc:creator>
      <dc:date>2013-05-16T17:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Report Showing How Many Hosts Per Index</title>
      <link>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36693#M703</link>
      <description>&lt;P&gt;I was hoping for something quicker, like in metadata.  Searching every record just isn't feasible.  But thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 17:36:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36693#M703</guid>
      <dc:creator>aferone</dc:creator>
      <dc:date>2013-05-16T17:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Report Showing How Many Hosts Per Index</title>
      <link>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36694#M704</link>
      <description>&lt;P&gt;| metadata type=hosts index=&lt;INDEXNAME&gt; | stats count by host&lt;/INDEXNAME&gt;&lt;/P&gt;

&lt;P&gt;I can get a list of hostnames using this query.  Is there a way to get the table I am looking for with this metadata?&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 17:39:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36694#M704</guid>
      <dc:creator>aferone</dc:creator>
      <dc:date>2013-05-16T17:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Report Showing How Many Hosts Per Index</title>
      <link>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36695#M705</link>
      <description>&lt;P&gt;I don't think so ... but maybe someone will come up with a creative solution&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 06:32:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36695#M705</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2013-05-21T06:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Report Showing How Many Hosts Per Index</title>
      <link>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36696#M706</link>
      <description>&lt;P&gt;index=* | stats values(host) by index&lt;/P&gt;

&lt;P&gt;This would also work but then it actually searches all the indexes for all the time. Well if that's what you want then this will work.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 12:09:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36696#M706</guid>
      <dc:creator>varad_joshi</dc:creator>
      <dc:date>2016-08-19T12:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Report Showing How Many Hosts Per Index</title>
      <link>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36697#M707</link>
      <description>&lt;P&gt;Old thread, but I figured out a way to do this with metadata.&lt;/P&gt;

&lt;P&gt;| metadata type=hosts index=main | stats count AS "Host Count" | eval "Source Index"="main"&lt;BR /&gt;
| append [ | metadata type=hosts index=other | stats count AS "Host Count" | eval "Source Index"="other"&lt;BR /&gt;
| table "Source Index","Host Count" &lt;/P&gt;

&lt;P&gt;And you just keep appending until you get all the indexes you wanted.&lt;BR /&gt;
Kind of wonky, but it's fast.&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 17:00:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36697#M707</guid>
      <dc:creator>jpgordon</dc:creator>
      <dc:date>2018-05-31T17:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Report Showing How Many Hosts Per Index</title>
      <link>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36698#M708</link>
      <description>&lt;P&gt;Was tstats invented after 2013, or did everyone just forget about that?&lt;/P&gt;

&lt;P&gt;Just do a:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats dc(host) where index=* by index
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 May 2018 18:00:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Report-Showing-How-Many-Hosts-Per-Index/m-p/36698#M708</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-05-31T18:00:05Z</dc:date>
    </item>
  </channel>
</rss>

