<?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 do I see all Hosts? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-see-all-Hosts/m-p/416886#M73619</link>
    <description>&lt;P&gt;To add to @PowerPacked 's correct answer, I am assuming you are seeing this in the "Selected Fields" sidebar. If so, click "host" there, "Top values", then ensure you have "limit=0" as a parameter to the top command, e.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt; your base search &amp;gt;
| top limit=0 host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you only want to see all hosts, the fastest way to do that is with this search (tstats is extremely efficient):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats values(host)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 29 Jul 2019 18:21:33 GMT</pubDate>
    <dc:creator>jacobpevans</dc:creator>
    <dc:date>2019-07-29T18:21:33Z</dc:date>
    <item>
      <title>How do I see all Hosts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-see-all-Hosts/m-p/416884#M73617</link>
      <description>&lt;P&gt;It's only showing "Top 10 Values" for some reason.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 17:28:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-see-all-Hosts/m-p/416884#M73617</guid>
      <dc:creator>philrego</dc:creator>
      <dc:date>2019-07-29T17:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I see all Hosts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-see-all-Hosts/m-p/416885#M73618</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;You didn't properly mention where you are seeing this behavior.&lt;/P&gt;

&lt;P&gt;you can always do stats to list all values in field --- your search | stats count by host&lt;/P&gt;

&lt;P&gt;if you are facing issue in timechart, chart command , use this  -- ----- your search | timechart count by host useother=f usenull=f&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 17:44:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-see-all-Hosts/m-p/416885#M73618</guid>
      <dc:creator>PowerPacked</dc:creator>
      <dc:date>2019-07-29T17:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I see all Hosts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-see-all-Hosts/m-p/416886#M73619</link>
      <description>&lt;P&gt;To add to @PowerPacked 's correct answer, I am assuming you are seeing this in the "Selected Fields" sidebar. If so, click "host" there, "Top values", then ensure you have "limit=0" as a parameter to the top command, e.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt; your base search &amp;gt;
| top limit=0 host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you only want to see all hosts, the fastest way to do that is with this search (tstats is extremely efficient):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats values(host)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jul 2019 18:21:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-see-all-Hosts/m-p/416886#M73619</guid>
      <dc:creator>jacobpevans</dc:creator>
      <dc:date>2019-07-29T18:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I see all Hosts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-see-all-Hosts/m-p/416887#M73620</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;| top limit=0 host&lt;BR /&gt;
worked but&lt;BR /&gt;
 | tstats values(host)&lt;BR /&gt;
only entering that in the search showed a bunch of hosts i've never seen and couldn't open at all.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 30 Jul 2019 03:43:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-see-all-Hosts/m-p/416887#M73620</guid>
      <dc:creator>philrego</dc:creator>
      <dc:date>2019-07-30T03:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I see all Hosts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-see-all-Hosts/m-p/416888#M73621</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;P&gt;| tstats values(host) where index=* earliest=0&lt;/P&gt;

&lt;P&gt;Above will give you a multivalue field. Personally, I prefer the below&lt;/P&gt;

&lt;P&gt;| tstats count where index=* earliest=0 by host&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 06:27:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-see-all-Hosts/m-p/416888#M73621</guid>
      <dc:creator>chinmoya</dc:creator>
      <dc:date>2019-07-30T06:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I see all Hosts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-see-all-Hosts/m-p/416889#M73622</link>
      <description>&lt;P&gt;I'm not following when you say you "couldn't open at all". The &lt;CODE&gt;tstats&lt;/CODE&gt; command quickly looks at certain fields such as index, host, and _time stored separately from the raw data. Here's another version of the command that will also show the last time data was reported for each index (building on @chinmoya 's answer):&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| tstats count latest(_time) as _time by host&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Finally, this is how you would get all events if you are unfamiliar with a specific host. Be sure you run the command with the same time-frame as the previous search.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=* host=[host_XYZ]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;If you're still having trouble, I highly recommend taking the free ~5-hour Splunk Fundamentals I training. You can find more information here: &lt;A href="https://www.splunk.com/en_us/training/courses/splunk-fundamentals-1.html"&gt;https://www.splunk.com/en_us/training/courses/splunk-fundamentals-1.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 13:17:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-see-all-Hosts/m-p/416889#M73622</guid>
      <dc:creator>jacobpevans</dc:creator>
      <dc:date>2019-07-30T13:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I see all Hosts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-see-all-Hosts/m-p/416890#M73623</link>
      <description>&lt;P&gt;Means when you click on the hosts and click "View events" or one of the other options. It opens another tab and immediately closed. | tstats values(host) only shows 100 hosts and none are the ones I use. Same thing with | tstats count latest(_time) as _time by host. Cant click on the results and it doesn't show the hosts I use.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 13:34:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-see-all-Hosts/m-p/416890#M73623</guid>
      <dc:creator>philrego</dc:creator>
      <dc:date>2019-07-30T13:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I see all Hosts?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-see-all-Hosts/m-p/416891#M73624</link>
      <description>&lt;P&gt;It returned 79,227 events. Could I possibly have that many hosts? I don't need access to more than like 30. &lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 13:35:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-see-all-Hosts/m-p/416891#M73624</guid>
      <dc:creator>philrego</dc:creator>
      <dc:date>2019-07-30T13:35:16Z</dc:date>
    </item>
  </channel>
</rss>

