<?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 search for newly added hosts? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-newly-added-hosts/m-p/275848#M83225</link>
    <description>&lt;P&gt;we need to find out all the new host that are added recently and not their date.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Oct 2016 12:17:52 GMT</pubDate>
    <dc:creator>Gayathirik</dc:creator>
    <dc:date>2016-10-28T12:17:52Z</dc:date>
    <item>
      <title>How to search for newly added hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-newly-added-hosts/m-p/275845#M83222</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;we have some new hosts added in our instance. we need to built a search to check for newly added hosts.&lt;/P&gt;

&lt;P&gt;We have used the below search but that is giving all the hosts that have communicated in the past 7 days rather than the ones that are newly added.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   | metadata type=hosts |eval SevenDaysBack = relative_time(now(), "-7d@d") 
   | where firstTime &amp;gt; SevenDaysBack 
   | eval hostAdded=strftime(firstTime, "%d-%m-%Y %H:%M") 
   | table host, hostAdded | sort hostAdded
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also metadata does not go well with timerange picker. the above search is not taking the time range as well.&lt;/P&gt;

&lt;P&gt;Is there any other way that we can find a solution to this?&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Gayathiri K&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 10:05:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-newly-added-hosts/m-p/275845#M83222</guid>
      <dc:creator>Gayathirik</dc:creator>
      <dc:date>2016-10-28T10:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for newly added hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-newly-added-hosts/m-p/275846#M83223</link>
      <description>&lt;P&gt;i was checking this metadata, metasearch and dbinspect, plain search queries.. but still no luck. &lt;/P&gt;

&lt;P&gt;one thought - you want to find out all hosts recently(last 7 days) added &lt;BR /&gt;
or,&lt;BR /&gt;
do you have a host name or list of hosts, and you want to find out their date added to splunk?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 10:10:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-newly-added-hosts/m-p/275846#M83223</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-10-28T10:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for newly added hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-newly-added-hosts/m-p/275847#M83224</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;i think you should take a look at this answer post. Its a smart solution for your problem by creating a little lookup file.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/422889/how-to-search-for-newly-added-servers-by-comparing.html"&gt;https://answers.splunk.com/answers/422889/how-to-search-for-newly-added-servers-by-comparing.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;kind regards&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 11:05:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-newly-added-hosts/m-p/275847#M83224</guid>
      <dc:creator>TStrauch</dc:creator>
      <dc:date>2016-10-28T11:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for newly added hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-newly-added-hosts/m-p/275848#M83225</link>
      <description>&lt;P&gt;we need to find out all the new host that are added recently and not their date.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 12:17:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-newly-added-hosts/m-p/275848#M83225</guid>
      <dc:creator>Gayathirik</dc:creator>
      <dc:date>2016-10-28T12:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for newly added hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-newly-added-hosts/m-p/275849#M83226</link>
      <description>&lt;P&gt;sorry, not getting you.. you need to find out recently added hosts meaning, you wanted to know the date of the hosts added to splunk, right&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 12:29:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-newly-added-hosts/m-p/275849#M83226</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-10-28T12:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for newly added hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-newly-added-hosts/m-p/275850#M83227</link>
      <description>&lt;P&gt;for example if we have 200 host and say 2 new host are added in a week,i would want to check only those 2 newly added host.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 09:45:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-newly-added-hosts/m-p/275850#M83227</guid>
      <dc:creator>Gayathirik</dc:creator>
      <dc:date>2016-11-02T09:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for newly added hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-newly-added-hosts/m-p/275851#M83228</link>
      <description>&lt;P&gt;Any luck with the answer to this lads? I am looking to alert on any new domains that have not been seen before i.e new domains being hit i want a splunk alert for this. thanks C.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 15:30:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-newly-added-hosts/m-p/275851#M83228</guid>
      <dc:creator>colinmchugo</dc:creator>
      <dc:date>2017-03-15T15:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for newly added hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-newly-added-hosts/m-p/275852#M83229</link>
      <description>&lt;P&gt;Any result lads? Id like an answer to this one too cheers. &lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 15:38:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-newly-added-hosts/m-p/275852#M83229</guid>
      <dc:creator>colinmchugo</dc:creator>
      <dc:date>2017-03-15T15:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for newly added hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-newly-added-hosts/m-p/275853#M83230</link>
      <description>&lt;P&gt;see the linked answer.  &lt;A href="https://answers.splunk.com/answers/422889/how-to-search-for-newly-added-servers-by-comparing.html"&gt;https://answers.splunk.com/answers/422889/how-to-search-for-newly-added-servers-by-comparing.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 18:12:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-newly-added-hosts/m-p/275853#M83230</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-03-15T18:12:53Z</dc:date>
    </item>
  </channel>
</rss>

