<?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: Group hosts by Sourcetype by Index in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Group-hosts-by-Sourcetype-by-Index/m-p/215169#M42363</link>
    <description>&lt;P&gt;have you tried &lt;BR /&gt;
&lt;CODE&gt;stats count by host, sourcetype, index&lt;/CODE&gt;  OR &lt;CODE&gt;tstats count by host, sourcetype, index&lt;/CODE&gt; ?&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2017 16:40:09 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-01-05T16:40:09Z</dc:date>
    <item>
      <title>Group hosts by Sourcetype by Index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Group-hosts-by-Sourcetype-by-Index/m-p/215167#M42361</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to perform a search that groups all hosts by sourcetype and groups those sourcetypes by index. So far I have this:&lt;BR /&gt;&lt;BR /&gt;
| tstats values(host) AS Host, values(sourcetype) AS Sourcetype WHERE index=* by index &lt;/P&gt;

&lt;P&gt;But this search does map each host to the sourcetype. Instead it shows all the hosts that have at least one of the resulting sourcetypes as a sourcetype. &lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 16:31:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Group-hosts-by-Sourcetype-by-Index/m-p/215167#M42361</guid>
      <dc:creator>king2jd</dc:creator>
      <dc:date>2017-01-05T16:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Group hosts by Sourcetype by Index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Group-hosts-by-Sourcetype-by-Index/m-p/215168#M42362</link>
      <description>&lt;P&gt;Can you give an example of what the end data should look like in table format?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 16:36:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Group-hosts-by-Sourcetype-by-Index/m-p/215168#M42362</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-01-05T16:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Group hosts by Sourcetype by Index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Group-hosts-by-Sourcetype-by-Index/m-p/215169#M42363</link>
      <description>&lt;P&gt;have you tried &lt;BR /&gt;
&lt;CODE&gt;stats count by host, sourcetype, index&lt;/CODE&gt;  OR &lt;CODE&gt;tstats count by host, sourcetype, index&lt;/CODE&gt; ?&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 16:40:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Group-hosts-by-Sourcetype-by-Index/m-p/215169#M42363</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-01-05T16:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Group hosts by Sourcetype by Index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Group-hosts-by-Sourcetype-by-Index/m-p/215170#M42364</link>
      <description>&lt;P&gt;Index1----sourcetype1-----host1&lt;BR /&gt;
                                   ------host2&lt;BR /&gt;
           ------sourcetype2---host 3&lt;BR /&gt;
Index2-----sourcetype3----host1&lt;BR /&gt;
                                      ----host5&lt;/P&gt;

&lt;P&gt;Does this help you?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 16:42:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Group-hosts-by-Sourcetype-by-Index/m-p/215170#M42364</guid>
      <dc:creator>king2jd</dc:creator>
      <dc:date>2017-01-05T16:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Group hosts by Sourcetype by Index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Group-hosts-by-Sourcetype-by-Index/m-p/215171#M42365</link>
      <description>&lt;P&gt;That came out worse than I thought but essentially&lt;BR /&gt;
index1-sourcetype1-host1,host2&lt;BR /&gt;
index2-sourcertype2-host1,host4&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 16:44:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Group-hosts-by-Sourcetype-by-Index/m-p/215171#M42365</guid>
      <dc:creator>king2jd</dc:creator>
      <dc:date>2017-01-05T16:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Group hosts by Sourcetype by Index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Group-hosts-by-Sourcetype-by-Index/m-p/215172#M42366</link>
      <description>&lt;P&gt;How about this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count where index=* by index sourcetype host 
| stats list(host) as Hosts by index sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jan 2017 17:09:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Group-hosts-by-Sourcetype-by-Index/m-p/215172#M42366</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2017-01-05T17:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Group hosts by Sourcetype by Index</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Group-hosts-by-Sourcetype-by-Index/m-p/215173#M42367</link>
      <description>&lt;P&gt;Does exactly what I needed. Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 18:37:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Group-hosts-by-Sourcetype-by-Index/m-p/215173#M42367</guid>
      <dc:creator>king2jd</dc:creator>
      <dc:date>2017-01-05T18:37:11Z</dc:date>
    </item>
  </channel>
</rss>

