<?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 do you detect when a host stops sending logs to Splunk? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-do-you-detect-when-a-host-stops-sending-logs-to-Splunk/m-p/369071#M6525</link>
    <description>&lt;P&gt;I created correlation search by this guide:&lt;BR /&gt;
&lt;A href="https://www.splunk.com/en_us/solutions/solution-areas/security-and-fraud/use-cases/detect-when-critical-system-stops-sending-logs.html" target="_blank"&gt;https://www.splunk.com/en_us/solutions/solution-areas/security-and-fraud/use-cases/detect-when-critical-system-stops-sending-logs.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;| metadata type=hosts&lt;BR /&gt;
| lookup critical_systems Host_name as host OUTPUT Host_name as host&lt;BR /&gt;
| search host=*&lt;BR /&gt;
| eval last60=relative_time(now(),”-60m@m")&lt;BR /&gt;
| convert ctime(lastTime) as LastTimeLogged&lt;BR /&gt;
| where lastTime &amp;lt; last60&lt;BR /&gt;
| table host, LastTimeLogged&lt;BR /&gt;
| sort –LastTimeLogged&lt;/P&gt;

&lt;P&gt;So, I tested it by lookup critical_systems where was working machines and machines that not sending logs near 2-3 days.&lt;BR /&gt;
Was success trigger. But after a while the critical machine stopped sending logs - the correlation search did not work.&lt;/P&gt;

&lt;P&gt;What can be problem?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 16:46:57 GMT</pubDate>
    <dc:creator>test_qweqwe</dc:creator>
    <dc:date>2020-09-29T16:46:57Z</dc:date>
    <item>
      <title>How do you detect when a host stops sending logs to Splunk?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-you-detect-when-a-host-stops-sending-logs-to-Splunk/m-p/369071#M6525</link>
      <description>&lt;P&gt;I created correlation search by this guide:&lt;BR /&gt;
&lt;A href="https://www.splunk.com/en_us/solutions/solution-areas/security-and-fraud/use-cases/detect-when-critical-system-stops-sending-logs.html" target="_blank"&gt;https://www.splunk.com/en_us/solutions/solution-areas/security-and-fraud/use-cases/detect-when-critical-system-stops-sending-logs.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;| metadata type=hosts&lt;BR /&gt;
| lookup critical_systems Host_name as host OUTPUT Host_name as host&lt;BR /&gt;
| search host=*&lt;BR /&gt;
| eval last60=relative_time(now(),”-60m@m")&lt;BR /&gt;
| convert ctime(lastTime) as LastTimeLogged&lt;BR /&gt;
| where lastTime &amp;lt; last60&lt;BR /&gt;
| table host, LastTimeLogged&lt;BR /&gt;
| sort –LastTimeLogged&lt;/P&gt;

&lt;P&gt;So, I tested it by lookup critical_systems where was working machines and machines that not sending logs near 2-3 days.&lt;BR /&gt;
Was success trigger. But after a while the critical machine stopped sending logs - the correlation search did not work.&lt;/P&gt;

&lt;P&gt;What can be problem?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:46:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-you-detect-when-a-host-stops-sending-logs-to-Splunk/m-p/369071#M6525</guid>
      <dc:creator>test_qweqwe</dc:creator>
      <dc:date>2020-09-29T16:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do you detect when a host stops sending logs to Splunk?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-you-detect-when-a-host-stops-sending-logs-to-Splunk/m-p/369072#M6526</link>
      <description>&lt;P&gt;The fact that it was not detected means that the log was being sent.&lt;/P&gt;

&lt;P&gt;How about adding conditions to target only the necessary logs?&lt;/P&gt;

&lt;P&gt;ex.&lt;BR /&gt;
| metadata type=hosts &lt;STRONG&gt;index=your_index&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 01:33:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-you-detect-when-a-host-stops-sending-logs-to-Splunk/m-p/369072#M6526</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2017-11-14T01:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do you detect when a host stops sending logs to Splunk?</title>
      <link>https://community.splunk.com/t5/Alerting/How-do-you-detect-when-a-host-stops-sending-logs-to-Splunk/m-p/369073#M6527</link>
      <description>&lt;P&gt;Hi test_qweqwe,&lt;BR /&gt;
why you don't use a different search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metasearch index=your_index
| eval host=upper(host)
| stats count by host
| append [ | inputlookup critical_systems | eval host=upper(Host_name), count=0 | fields host count ]
| stats sum(count) AS Total BY host
| where Total=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So hosts where Total&amp;gt;0 are OK hosts where Total=0 are missed.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 08:05:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-do-you-detect-when-a-host-stops-sending-logs-to-Splunk/m-p/369073#M6527</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-11-14T08:05:45Z</dc:date>
    </item>
  </channel>
</rss>

