<?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: Identifying &amp;quot;idle&amp;quot; sources in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Identifying-quot-idle-quot-sources/m-p/70408#M14321</link>
    <description>&lt;P&gt;To find sources that have checked in within the last week, but not within the last 24 hours:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata sources
| eval age=now()-recentTime 
| where age&amp;gt;86400 and age&amp;lt;604800
| convert ctime(recentTime) as LastEvent
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Tune the cutoff values (in seconds) in line 3 as needed.&lt;/P&gt;

&lt;P&gt;Replace &lt;CODE&gt;sources&lt;/CODE&gt; with &lt;CODE&gt;hosts&lt;/CODE&gt; or &lt;CODE&gt;sourcetypes&lt;/CODE&gt; if you want to report on those.&lt;/P&gt;

&lt;P&gt;To evaluate for a specific source/sourcetype from a specific host, you would have to query the timestamps of raw events instead of using metadata (which can be &lt;I&gt;much&lt;/I&gt; slower).&lt;/P&gt;</description>
    <pubDate>Thu, 14 Oct 2010 20:37:34 GMT</pubDate>
    <dc:creator>southeringtonp</dc:creator>
    <dc:date>2010-10-14T20:37:34Z</dc:date>
    <item>
      <title>Identifying "idle" sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Identifying-quot-idle-quot-sources/m-p/70406#M14319</link>
      <description>&lt;P&gt;How can I get a list of sources that haven't received any events for a given period of time (e.g. for last 24 hours). Purpose: alert Splunk admin if there are "idle" sources&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2010 18:54:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Identifying-quot-idle-quot-sources/m-p/70406#M14319</guid>
      <dc:creator>IgorB</dc:creator>
      <dc:date>2010-10-14T18:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying "idle" sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Identifying-quot-idle-quot-sources/m-p/70407#M14320</link>
      <description>&lt;P&gt;You can use the following search to identify the last reported time of hosts:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts index=blah | sort recentTime desc | convert ctime(recentTime) as Recent_Time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And you can modify it to work on sources by changing hosts to sources:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=sources index=blah | sort recentTime desc | convert ctime(recentTime) as Recent_Time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Oct 2010 20:32:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Identifying-quot-idle-quot-sources/m-p/70407#M14320</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2010-10-14T20:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying "idle" sources</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Identifying-quot-idle-quot-sources/m-p/70408#M14321</link>
      <description>&lt;P&gt;To find sources that have checked in within the last week, but not within the last 24 hours:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata sources
| eval age=now()-recentTime 
| where age&amp;gt;86400 and age&amp;lt;604800
| convert ctime(recentTime) as LastEvent
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Tune the cutoff values (in seconds) in line 3 as needed.&lt;/P&gt;

&lt;P&gt;Replace &lt;CODE&gt;sources&lt;/CODE&gt; with &lt;CODE&gt;hosts&lt;/CODE&gt; or &lt;CODE&gt;sourcetypes&lt;/CODE&gt; if you want to report on those.&lt;/P&gt;

&lt;P&gt;To evaluate for a specific source/sourcetype from a specific host, you would have to query the timestamps of raw events instead of using metadata (which can be &lt;I&gt;much&lt;/I&gt; slower).&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2010 20:37:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Identifying-quot-idle-quot-sources/m-p/70408#M14321</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-10-14T20:37:34Z</dc:date>
    </item>
  </channel>
</rss>

