<?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 get list of hosts added to our instance in the last 7 days? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-list-of-hosts-added-to-our-instance-in-the-last-7/m-p/286052#M21824</link>
    <description>&lt;P&gt;Use the metadata command for the quickest solution to this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts index=*
| fields - firstTime,totalCount,type
| eval filterAge=relative_time(now(),"-7d@d")
| eval ageInSeconds = (now()-recentTime)
| where recentTime &amp;gt; filterAge
| convert ctime(lastTime) ctime(recentTime)
| table host ageInSeconds lastTime recentTime 
| sort - ageInSeconds
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can adjust the filterAge using Splunk time modifiers.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2016 08:23:00 GMT</pubDate>
    <dc:creator>esix_splunk</dc:creator>
    <dc:date>2016-09-16T08:23:00Z</dc:date>
    <item>
      <title>How to get list of hosts added to our instance in the last 7 days?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-list-of-hosts-added-to-our-instance-in-the-last-7/m-p/286051#M21823</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I wanted to know hosts added to our instance in the last 7 days,&lt;/P&gt;

&lt;P&gt;We want to create a report for this,&lt;/P&gt;

&lt;P&gt;Kindly help..&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2016 08:16:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-list-of-hosts-added-to-our-instance-in-the-last-7/m-p/286051#M21823</guid>
      <dc:creator>kiran_mh</dc:creator>
      <dc:date>2016-09-16T08:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get list of hosts added to our instance in the last 7 days?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-list-of-hosts-added-to-our-instance-in-the-last-7/m-p/286052#M21824</link>
      <description>&lt;P&gt;Use the metadata command for the quickest solution to this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts index=*
| fields - firstTime,totalCount,type
| eval filterAge=relative_time(now(),"-7d@d")
| eval ageInSeconds = (now()-recentTime)
| where recentTime &amp;gt; filterAge
| convert ctime(lastTime) ctime(recentTime)
| table host ageInSeconds lastTime recentTime 
| sort - ageInSeconds
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can adjust the filterAge using Splunk time modifiers.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2016 08:23:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-list-of-hosts-added-to-our-instance-in-the-last-7/m-p/286052#M21824</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2016-09-16T08:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get list of hosts added to our instance in the last 7 days?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-list-of-hosts-added-to-our-instance-in-the-last-7/m-p/286053#M21825</link>
      <description>&lt;P&gt;thanks for your reply..&lt;/P&gt;

&lt;P&gt;In the given query we are getting hosts which were added way before 7 days , actually we wanted to get a list of only new hosts added to our instance&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 08:59:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-list-of-hosts-added-to-our-instance-in-the-last-7/m-p/286053#M21825</guid>
      <dc:creator>kiran_mh</dc:creator>
      <dc:date>2016-09-21T08:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get list of hosts added to our instance in the last 7 days?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-list-of-hosts-added-to-our-instance-in-the-last-7/m-p/286054#M21826</link>
      <description>&lt;P&gt;tested and working fine.. &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;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1864i8C2CD26C3DF0FBAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 10:42:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-get-list-of-hosts-added-to-our-instance-in-the-last-7/m-p/286054#M21826</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-09-21T10:42:32Z</dc:date>
    </item>
  </channel>
</rss>

