<?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 write a search to find new hosts that are sending logs to Splunk? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-find-new-hosts-that-are-sending-logs-to/m-p/218368#M64169</link>
    <description>&lt;P&gt;hi sumitkathpal,&lt;BR /&gt;
You can see which hosts are sending logs to Splunk with this simple search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to verify if there are new hosts you have to insert your hosts in a lookup and search for them:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal NOT [ | inputlookup my_hosts.csv | fields host ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in this way you can find if an host is or not in your lookup.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2017 11:12:46 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-01-04T11:12:46Z</dc:date>
    <item>
      <title>How to write a search to find new hosts that are sending logs to Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-find-new-hosts-that-are-sending-logs-to/m-p/218367#M64168</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;

&lt;P&gt;We are looking for a search where we can find new hosts that are sending logs to Splunk. I am stuck and don't know where to start.&lt;/P&gt;

&lt;P&gt;Any help. Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 11:03:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-find-new-hosts-that-are-sending-logs-to/m-p/218367#M64168</guid>
      <dc:creator>sumitkathpal</dc:creator>
      <dc:date>2017-01-04T11:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to find new hosts that are sending logs to Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-find-new-hosts-that-are-sending-logs-to/m-p/218368#M64169</link>
      <description>&lt;P&gt;hi sumitkathpal,&lt;BR /&gt;
You can see which hosts are sending logs to Splunk with this simple search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to verify if there are new hosts you have to insert your hosts in a lookup and search for them:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal NOT [ | inputlookup my_hosts.csv | fields host ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in this way you can find if an host is or not in your lookup.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 11:12:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-find-new-hosts-that-are-sending-logs-to/m-p/218368#M64169</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-01-04T11:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to find new hosts that are sending logs to Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-find-new-hosts-that-are-sending-logs-to/m-p/218369#M64170</link>
      <description>&lt;P&gt;You could try this if you just want to show those new hosts that have reported for the first time since yesterday:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts index=_* OR index=*
| where firstTime &amp;gt;= relative_time(now(), "-1d")
| convert timeformat="%Y-%m-%d %T" ctime(firstTime) as firstTime, ctime(lastTime) as lastTime, ctime(recentTime) as recentTime
| table host, firstTime, lastTime, recentTime, Count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Simply modify the relative_time parameters to match your time range needs.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 11:18:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-find-new-hosts-that-are-sending-logs-to/m-p/218369#M64170</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2017-01-04T11:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to find new hosts that are sending logs to Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-find-new-hosts-that-are-sending-logs-to/m-p/218370#M64171</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Did any of the answers below help you?&lt;BR /&gt;
If so, could you please mark it as answered so that we can close the thread?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
J&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 20:57:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-find-new-hosts-that-are-sending-logs-to/m-p/218370#M64171</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2017-01-26T20:57:08Z</dc:date>
    </item>
  </channel>
</rss>

