<?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: How to list all hosts under a certain sourcetype? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-all-hosts-under-a-certain-sourcetype/m-p/226505#M66797</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;sourcetype=syslog | stats count by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or, you could use something like this to see how much data each host is sending:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=syslog | eval length=len(_raw) | stats sum(length) by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 02 Mar 2016 14:38:48 GMT</pubDate>
    <dc:creator>vasildavid</dc:creator>
    <dc:date>2016-03-02T14:38:48Z</dc:date>
    <item>
      <title>How to list all hosts under a certain sourcetype?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-all-hosts-under-a-certain-sourcetype/m-p/226504#M66796</link>
      <description>&lt;P&gt;Hey Guys &lt;/P&gt;

&lt;P&gt;So I have a sourcetype of syslog, but under that sourcetype seems to be a whole bunch of hosts. What's the best search to list all the hosts sending under the syslog sourcetype?&lt;/P&gt;

&lt;P&gt;Sorry for such a basic question, I'm not too bad at making Splunk work, but actually using it for searches etc I'm not so hot.&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;

&lt;P&gt;Aaron&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 14:35:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-all-hosts-under-a-certain-sourcetype/m-p/226504#M66796</guid>
      <dc:creator>AaronMoorcroft</dc:creator>
      <dc:date>2016-03-02T14:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to list all hosts under a certain sourcetype?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-all-hosts-under-a-certain-sourcetype/m-p/226505#M66797</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;sourcetype=syslog | stats count by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or, you could use something like this to see how much data each host is sending:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=syslog | eval length=len(_raw) | stats sum(length) by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Mar 2016 14:38:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-all-hosts-under-a-certain-sourcetype/m-p/226505#M66797</guid>
      <dc:creator>vasildavid</dc:creator>
      <dc:date>2016-03-02T14:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to list all hosts under a certain sourcetype?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-all-hosts-under-a-certain-sourcetype/m-p/226506#M66798</link>
      <description>&lt;P&gt;That Iooks to be doing what I need, thank you Sir...&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 14:52:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-all-hosts-under-a-certain-sourcetype/m-p/226506#M66798</guid>
      <dc:creator>AaronMoorcroft</dc:creator>
      <dc:date>2016-03-02T14:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to list all hosts under a certain sourcetype?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-all-hosts-under-a-certain-sourcetype/m-p/226507#M66799</link>
      <description>&lt;P&gt;Hi Aaron, if you wanted a quick simple count, this might be a good use for tstats, which will usually finish faster than a normal search. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count where sourcetype=syslog by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Mar 2016 15:04:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-all-hosts-under-a-certain-sourcetype/m-p/226507#M66799</guid>
      <dc:creator>muebel</dc:creator>
      <dc:date>2016-03-02T15:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to list all hosts under a certain sourcetype?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-all-hosts-under-a-certain-sourcetype/m-p/226508#M66800</link>
      <description>&lt;P&gt;I can vouch for that&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 16:00:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-all-hosts-under-a-certain-sourcetype/m-p/226508#M66800</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-02T16:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to list all hosts under a certain sourcetype?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-list-all-hosts-under-a-certain-sourcetype/m-p/226509#M66801</link>
      <description>&lt;P&gt;Thank you, that also seems to work well, no doubt ill be needing more help with some simple searches over the coming days. I have to try and break down everything that is being logged into categories and generally have a tidy up.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 16:42:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-list-all-hosts-under-a-certain-sourcetype/m-p/226509#M66801</guid>
      <dc:creator>AaronMoorcroft</dc:creator>
      <dc:date>2016-03-02T16:42:44Z</dc:date>
    </item>
  </channel>
</rss>

