<?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: Splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Finding-forwarders-that-have-not-sent-data/m-p/748422#M118940</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/272456"&gt;@sverdhan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;| metadata type=hosts index=* earliest=-30d@d&lt;BR /&gt;| eval age = now() - lastTime&lt;BR /&gt;| eval last_seen = strftime(lastTime, "%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| where age &amp;gt; 30*24*60*60&lt;BR /&gt;| eval age_days = round(age/(24*60*60), 2)&lt;BR /&gt;| table host, last_seen, age_days&lt;BR /&gt;| rename host as "Forwarder", last_seen as "Last Data Received", age_days as "Days Since Last Data"&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_1-1750417661835.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39428i2A533A4AFE493EFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_1-1750417661835.png" alt="kiran_panchavat_1-1750417661835.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jun 2025 11:08:05 GMT</pubDate>
    <dc:creator>kiran_panchavat</dc:creator>
    <dc:date>2025-06-20T11:08:05Z</dc:date>
    <item>
      <title>Finding forwarders that have not sent data</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Finding-forwarders-that-have-not-sent-data/m-p/748415#M118937</link>
      <description>&lt;P&gt;Hello ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please provide me a query which lists out&amp;nbsp; all forwarders that have not send data over the last 30 days?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 12:18:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Finding-forwarders-that-have-not-sent-data/m-p/748415#M118937</guid>
      <dc:creator>sverdhan</dc:creator>
      <dc:date>2025-06-20T12:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Finding-forwarders-that-have-not-sent-data/m-p/748419#M118938</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/272456"&gt;@sverdhan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;!--  ScriptorStartFragment  --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_0-1750417565991.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39427i65C924849247AEEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_0-1750417565991.png" alt="kiran_panchavat_0-1750417565991.png" /&gt;&lt;/span&gt;&lt;PRE&gt;| tstats latest(_time) as lastTime where index=* by host &lt;BR /&gt;| eval age=now()-lastTime &lt;BR /&gt;| where age &amp;gt; 2592000 &lt;BR /&gt;| convert ctime(lastTime)&lt;BR /&gt;| rename host as "Forwarder Host", lastTime as "Last Data Received Time", age as "Age (in seconds)"&lt;BR /&gt;| sort - "Age (in seconds)"&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;!--  ScriptorEndFragment  --&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 11:06:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Finding-forwarders-that-have-not-sent-data/m-p/748419#M118938</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2025-06-20T11:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Finding-forwarders-that-have-not-sent-data/m-p/748422#M118940</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/272456"&gt;@sverdhan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;| metadata type=hosts index=* earliest=-30d@d&lt;BR /&gt;| eval age = now() - lastTime&lt;BR /&gt;| eval last_seen = strftime(lastTime, "%Y-%m-%d %H:%M:%S")&lt;BR /&gt;| where age &amp;gt; 30*24*60*60&lt;BR /&gt;| eval age_days = round(age/(24*60*60), 2)&lt;BR /&gt;| table host, last_seen, age_days&lt;BR /&gt;| rename host as "Forwarder", last_seen as "Last Data Received", age_days as "Days Since Last Data"&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kiran_panchavat_1-1750417661835.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39428i2A533A4AFE493EFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kiran_panchavat_1-1750417661835.png" alt="kiran_panchavat_1-1750417661835.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 11:08:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Finding-forwarders-that-have-not-sent-data/m-p/748422#M118940</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2025-06-20T11:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Finding-forwarders-that-have-not-sent-data/m-p/748423#M118941</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/272456"&gt;@sverdhan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;see in the Monitoring Console the "DMC Alert - Missing forwarders" alert&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup dmc_forwarder_assets
| search status="missing" 
| rename hostname as Instance&lt;/LI-CODE&gt;&lt;P&gt;otherwise, if you want to know the clients that were connected in the last 30 days but not in the last hour, you could run something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats latest(_time) AS _time count where index=_internal BY host
| eval period=if(_time&amp;gt;now()-3600,"Last hour","Previous")
| stats 
     dc(period) AS period_count 
     values(period) AS period 
     latest(_time) AS _time
     BY host
| where period_count=1 AND period="Last hour"
| table host _time&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 11:08:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Finding-forwarders-that-have-not-sent-data/m-p/748423#M118941</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2025-06-20T11:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Finding-forwarders-that-have-not-sent-data/m-p/748424#M118942</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/272456"&gt;@sverdhan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would avoid looking at things like index=* because this is very resource intensive and also may include hosts which are not forwarders!&lt;/P&gt;&lt;P&gt;Instead you can utilise the _metrics index which is very fast and efficient, you could try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|mstats latest_time(_value) as latest_time WHERE earliest=-31d latest=now index=_metrics metric_name="spl.mlog.tcpin_connections._tcp_eps" source="/opt/splunk/var/log/splunk/metrics.log" group=tcpin_connections by hostname 
| eval notSeenFor30Days=IF(latest_time&amp;lt;now()-(60*60*24*30),"NotSeen","Seen")
| eval lastSeen=tostring(now()-latest_time,"duration")&lt;/LI-CODE&gt;&lt;P&gt;I would usually recommend having a lookup of "known forwarders" for this task and then update it with when it was last seen, that way you wouldnt need to look back 30 days each time.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 11:17:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Finding-forwarders-that-have-not-sent-data/m-p/748424#M118942</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-06-20T11:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Finding-forwarders-that-have-not-sent-data/m-p/748434#M118947</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp;recommended using a lookup to track your Forwarders.&amp;nbsp; I have to say that this is a really valuable tool, because if you keep track of your forwarders using a lookup, you can see what systems have not reported easily but you can also see any new forwarders that are sending logs to your system that you didn't know about.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Below is a youtube video tutorial on using the lookup to track systems no longer sending logs.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://youtu.be/lo4_MIfTJzI?si=WfHxtBzTHLxmhQpe" target="_blank" rel="noopener"&gt;https://youtu.be/lo4_MIfTJzI?si=WfHxtBzTHLxmhQpe&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;All of the posts are good ideas.&amp;nbsp; The lookup is just one way to do it that is quick and easy, but there are many ways to do things in splunk, this is just my favorite way.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jun 2025 14:06:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Finding-forwarders-that-have-not-sent-data/m-p/748434#M118947</guid>
      <dc:creator>LAME-Creations</dc:creator>
      <dc:date>2025-06-20T14:06:18Z</dc:date>
    </item>
  </channel>
</rss>

