<?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 How to detect a host which stops sending logs? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-detect-a-host-which-stops-sending-logs/m-p/173190#M34827</link>
    <description>&lt;P&gt;Hi everyone, How do I detect a host which stops sending logs? Ideally an alert would be the optimal application of an elaborate search. So far &lt;STRONG&gt;|metadata type=hosts | eval age = now() - lastTime | search age &amp;gt; 86400 | sort age d | convert ctime(lastTime) | fields age,host,lastTime&lt;/STRONG&gt; doesn't do the trick. &lt;/P&gt;

&lt;P&gt;It only works for one day and then it stops producing results (we are assuming the host which stopped forwarding stays that way meaning it worked once upon a time and then it stopped working; it doesn't just start working again by itself)...hence the need to detect this condition MORE THAN a day after the host stopped forwarding. For example I want the search to produce result if a host last forwarded a log 28 days ago and since then it hasn't forwarded anything.&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 21 Oct 2014 00:46:50 GMT</pubDate>
    <dc:creator>bbiandov</dc:creator>
    <dc:date>2014-10-21T00:46:50Z</dc:date>
    <item>
      <title>How to detect a host which stops sending logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-detect-a-host-which-stops-sending-logs/m-p/173190#M34827</link>
      <description>&lt;P&gt;Hi everyone, How do I detect a host which stops sending logs? Ideally an alert would be the optimal application of an elaborate search. So far &lt;STRONG&gt;|metadata type=hosts | eval age = now() - lastTime | search age &amp;gt; 86400 | sort age d | convert ctime(lastTime) | fields age,host,lastTime&lt;/STRONG&gt; doesn't do the trick. &lt;/P&gt;

&lt;P&gt;It only works for one day and then it stops producing results (we are assuming the host which stopped forwarding stays that way meaning it worked once upon a time and then it stopped working; it doesn't just start working again by itself)...hence the need to detect this condition MORE THAN a day after the host stopped forwarding. For example I want the search to produce result if a host last forwarded a log 28 days ago and since then it hasn't forwarded anything.&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2014 00:46:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-detect-a-host-which-stops-sending-logs/m-p/173190#M34827</guid>
      <dc:creator>bbiandov</dc:creator>
      <dc:date>2014-10-21T00:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect a host which stops sending logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-detect-a-host-which-stops-sending-logs/m-p/173191#M34828</link>
      <description>&lt;P&gt;Seems like you should just be able to increase the number you're comparing against &lt;CODE&gt;age&lt;/CODE&gt;, e.g., to 86400 x 28. I suppose if you want to every day report on every host that has ever stopped sending, then you can just remove that filter entirely.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2014 04:10:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-detect-a-host-which-stops-sending-logs/m-p/173191#M34828</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2014-10-21T04:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect a host which stops sending logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-detect-a-host-which-stops-sending-logs/m-p/173192#M34829</link>
      <description>&lt;P&gt;Thanks  gkanapathy, the challenge I am facing is that the search works just fine; but if saved as an alert one can ONLY select 1 day; sure you can change it in the GUI but once saved it reverts back to 1 day. That's what breaks it:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.dropbox.com/s/2dzon27ssowqicg/splunk.png?dl=0"&gt;https://www.dropbox.com/s/2dzon27ssowqicg/splunk.png?dl=0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2014 04:31:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-detect-a-host-which-stops-sending-logs/m-p/173192#M34829</guid>
      <dc:creator>bbiandov</dc:creator>
      <dc:date>2014-10-21T04:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect a host which stops sending logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-detect-a-host-which-stops-sending-logs/m-p/173193#M34830</link>
      <description>&lt;P&gt;you need to edit the search, not the time selector.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2014 04:34:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-detect-a-host-which-stops-sending-logs/m-p/173193#M34830</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2014-10-21T04:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect a host which stops sending logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-detect-a-host-which-stops-sending-logs/m-p/173194#M34831</link>
      <description>&lt;P&gt;you need to run over 2/3 days to get the missing forwarder alert again and again. The problem with daily alert is metdata doesn't show you older records.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2014 06:47:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-detect-a-host-which-stops-sending-logs/m-p/173194#M34831</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-10-21T06:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect a host which stops sending logs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-detect-a-host-which-stops-sending-logs/m-p/173195#M34832</link>
      <description>&lt;P&gt;You can use an app named : "deployement monitor"&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2015 09:10:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-detect-a-host-which-stops-sending-logs/m-p/173195#M34832</guid>
      <dc:creator>jd</dc:creator>
      <dc:date>2015-07-08T09:10:13Z</dc:date>
    </item>
  </channel>
</rss>

