<?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: Find hosts matching naming criteria in Splunk? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Find-hosts-matching-naming-criteria-in-Splunk/m-p/176584#M50726</link>
    <description>&lt;P&gt;Did you try using &lt;CODE&gt;host=IAA*&lt;/CODE&gt; ?&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jun 2015 21:05:49 GMT</pubDate>
    <dc:creator>sk314</dc:creator>
    <dc:date>2015-06-25T21:05:49Z</dc:date>
    <item>
      <title>Find hosts matching naming criteria in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-hosts-matching-naming-criteria-in-Splunk/m-p/176583#M50725</link>
      <description>&lt;P&gt;We use this search quite a bit, and love it.  In this example it provides a list of all hosts (servers) reporting to splunk in a specific index... &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|metadata type=hosts index=ms_ad_log| convert timeformat=" %m/%d/%Y" ctime(*) none(host) none(type) none(totalCount) |rename firstTime AS first, recentTime AS last, totalCount as total | table host,first,last,total | sort - total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But...I need to narrow this search to a specific set of hosts that are named &lt;EM&gt;IAA&lt;/EM&gt; -- and using this search criteria doesn't seem to work....   &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|metadata type=hosts index=* host=*IAA*| convert timeformat=" %m/%d/%Y" ctime(*) none(host) none(type) none(totalCount) |rename firstTime AS first, recentTime AS last, totalCount as total | table host,first,last,total | sort - total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2015 19:32:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-hosts-matching-naming-criteria-in-Splunk/m-p/176583#M50725</guid>
      <dc:creator>sm600</dc:creator>
      <dc:date>2015-06-25T19:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Find hosts matching naming criteria in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-hosts-matching-naming-criteria-in-Splunk/m-p/176584#M50726</link>
      <description>&lt;P&gt;Did you try using &lt;CODE&gt;host=IAA*&lt;/CODE&gt; ?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2015 21:05:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-hosts-matching-naming-criteria-in-Splunk/m-p/176584#M50726</guid>
      <dc:creator>sk314</dc:creator>
      <dc:date>2015-06-25T21:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Find hosts matching naming criteria in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-hosts-matching-naming-criteria-in-Splunk/m-p/176585#M50727</link>
      <description>&lt;P&gt;Hi sm600,&lt;/P&gt;

&lt;P&gt;@sk314 got it almost correct &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts index=* 
| search host=IAA*
| convert timeformat=" %m/%d/%Y" ctime(*) none(host) none(type) none(totalCount) 
| rename firstTime AS first, recentTime AS last, totalCount as total 
| table host,first,last,total 
| sort - total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2015 21:14:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-hosts-matching-naming-criteria-in-Splunk/m-p/176585#M50727</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-06-25T21:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Find hosts matching naming criteria in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-hosts-matching-naming-criteria-in-Splunk/m-p/176586#M50728</link>
      <description>&lt;P&gt;Not again! &lt;span class="lia-unicode-emoji" title=":neutral_face:"&gt;😐&lt;/span&gt; &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2015 21:22:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-hosts-matching-naming-criteria-in-Splunk/m-p/176586#M50728</guid>
      <dc:creator>sk314</dc:creator>
      <dc:date>2015-06-25T21:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Find hosts matching naming criteria in Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Find-hosts-matching-naming-criteria-in-Splunk/m-p/176587#M50729</link>
      <description>&lt;P&gt;Thanks...adding &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|search host=*iaa*| 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;worked perfectly&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2015 00:29:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Find-hosts-matching-naming-criteria-in-Splunk/m-p/176587#M50729</guid>
      <dc:creator>sm600</dc:creator>
      <dc:date>2015-06-26T00:29:55Z</dc:date>
    </item>
  </channel>
</rss>

