<?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: Shedule report: Server stopped sending data in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Shedule-report-Server-stopped-sending-data/m-p/309107#M9376</link>
    <description>&lt;P&gt;as per splunk wiki, this query i have tested and it works fine. &lt;BR /&gt;
&lt;PRE&gt;index=_internal "group=tcpin_connections" | stats max(_time) as latest by sourceHost | eventstats max(latest) as latest_all | eval lag = latest_all - latest | where lag &amp;gt; 604800 | fields sourceHost lag &lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;10080 mins = 60 mins* 24hrs *7days&lt;/P&gt;

&lt;P&gt;and for converting the time format, we can add one strftime - &lt;BR /&gt;
&lt;PRE&gt;index=_internal group=tcpin_connections | stats max(_time) as latest by sourceHost | eventstats max(latest) as latest_all | eval lag = latest_all - latest | where lag &amp;gt; 10080 |  eval lastConnected=strftime(latest, "%m.%d.%y %H:%M:%S") | table latest, lastConnected, sourceHost &lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://wiki.splunk.com/Community:HowToFindLostForwarders" target="_blank"&gt;https://wiki.splunk.com/Community:HowToFindLostForwarders&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 14:49:52 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2020-09-29T14:49:52Z</dc:date>
    <item>
      <title>Shedule report: Server stopped sending data</title>
      <link>https://community.splunk.com/t5/Reporting/Shedule-report-Server-stopped-sending-data/m-p/309106#M9375</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I read some answers here, but I just can´t make it work.&lt;/P&gt;

&lt;P&gt;I have a query searching for hosts and the last time they connected to splunk. This part is working fine.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source"*metrics.log" group=tcpout_connections NOT host=xyz | eval lastConnected=max(_time) | eval lastConnected=strftime(_time , "%m.%d.%y %H:%M:%S") | stats latest(lastConnected) by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So now I want every host which is not sending data/ not connecting to splunk, along with the time it stopped sending. This should be done for 1 week, as a sheduled report.&lt;/P&gt;

&lt;P&gt;Help is highly appreciated.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 09:42:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Shedule-report-Server-stopped-sending-data/m-p/309106#M9375</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2017-07-11T09:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Shedule report: Server stopped sending data</title>
      <link>https://community.splunk.com/t5/Reporting/Shedule-report-Server-stopped-sending-data/m-p/309107#M9376</link>
      <description>&lt;P&gt;as per splunk wiki, this query i have tested and it works fine. &lt;BR /&gt;
&lt;PRE&gt;index=_internal "group=tcpin_connections" | stats max(_time) as latest by sourceHost | eventstats max(latest) as latest_all | eval lag = latest_all - latest | where lag &amp;gt; 604800 | fields sourceHost lag &lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;10080 mins = 60 mins* 24hrs *7days&lt;/P&gt;

&lt;P&gt;and for converting the time format, we can add one strftime - &lt;BR /&gt;
&lt;PRE&gt;index=_internal group=tcpin_connections | stats max(_time) as latest by sourceHost | eventstats max(latest) as latest_all | eval lag = latest_all - latest | where lag &amp;gt; 10080 |  eval lastConnected=strftime(latest, "%m.%d.%y %H:%M:%S") | table latest, lastConnected, sourceHost &lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://wiki.splunk.com/Community:HowToFindLostForwarders" target="_blank"&gt;https://wiki.splunk.com/Community:HowToFindLostForwarders&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:49:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Shedule-report-Server-stopped-sending-data/m-p/309107#M9376</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-09-29T14:49:52Z</dc:date>
    </item>
  </channel>
</rss>

