<?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 do I find when was the last time a particular source type was updated? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-find-when-was-the-last-time-a-particular-source-type/m-p/413454#M94060</link>
    <description>&lt;P&gt;Hi @zacksoft,&lt;/P&gt;

&lt;P&gt;You can metadata for command for this query. MOre information on metadata &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.0/SearchReference/Metadata"&gt;http://docs.splunk.com/Documentation/Splunk/7.2.0/SearchReference/Metadata&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;For example below query will give you all sourcetypes which didn't sent data since last 15 minutes&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=sourcetypes | eval recent_Time=strftime(recentTime, "%d/%m/%Y %H:%M:%S") | eval lag=now() - recentTime | where lag &amp;gt; 900
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 10 Oct 2018 12:05:34 GMT</pubDate>
    <dc:creator>harsmarvania57</dc:creator>
    <dc:date>2018-10-10T12:05:34Z</dc:date>
    <item>
      <title>How do I find when was the last time a particular source type was updated?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-find-when-was-the-last-time-a-particular-source-type/m-p/413453#M94059</link>
      <description>&lt;P&gt;I basically want to know how to figure out if Splunk isn't sending data and if my source/sourcetype has stale data.&lt;/P&gt;

&lt;P&gt;Is there a type of mechanism where I can check if the last event present for the particular source is 15 minutes older and then generate an alert?&lt;/P&gt;

&lt;P&gt;(In my case the data gets updated pretty frequently, so if the latest event's time stamp of a source is less than 15 minutes than current time then my charts and reports are showing old data).&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 11:50:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-find-when-was-the-last-time-a-particular-source-type/m-p/413453#M94059</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-10-10T11:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find when was the last time a particular source type was updated?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-find-when-was-the-last-time-a-particular-source-type/m-p/413454#M94060</link>
      <description>&lt;P&gt;Hi @zacksoft,&lt;/P&gt;

&lt;P&gt;You can metadata for command for this query. MOre information on metadata &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.0/SearchReference/Metadata"&gt;http://docs.splunk.com/Documentation/Splunk/7.2.0/SearchReference/Metadata&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;For example below query will give you all sourcetypes which didn't sent data since last 15 minutes&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=sourcetypes | eval recent_Time=strftime(recentTime, "%d/%m/%Y %H:%M:%S") | eval lag=now() - recentTime | where lag &amp;gt; 900
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Oct 2018 12:05:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-find-when-was-the-last-time-a-particular-source-type/m-p/413454#M94060</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-10-10T12:05:34Z</dc:date>
    </item>
  </channel>
</rss>

