<?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: Query for devices/servers not reporting to Splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645356#M109809</link>
    <description>&lt;P&gt;Query has been tweaked.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2023 13:12:01 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-06-01T13:12:01Z</dc:date>
    <item>
      <title>How to search for devices/servers not reporting to Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645249#M109790</link>
      <description>&lt;P&gt;I have two queries I want to merge and I need expert help. The first one returns reporting devices as good and non-reporting devices as missing. The second one returns the missing devices with a heartbeat but not sending logs. Help me come up with one query that would show results for Good, Heartbeat and Missing:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| tstats latest(_time) as latest where index="*" earliest=-5d by host
| eval recent = if(latest &amp;gt; relative_time(now(),"-15m"),"Good","Missing"), realLatest = strftime(latest,"%c")

| tstats latest(_time) as latest where index="_*" earliest=-5d by host
| eval recent = if(latest &amp;gt; relative_time(now(),"-15m"),"Heartbeat","Missing"), realLatest = strftime(latest,"%c")&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 31 May 2023 15:09:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645249#M109790</guid>
      <dc:creator>waJesu</dc:creator>
      <dc:date>2023-05-31T15:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for devices/servers not reporting to Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645262#M109794</link>
      <description>&lt;P&gt;See if this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats latest(_time) as latest where (index="*" OR index=_internal) earliest=-5d by host
| eval recent = case(index!=_internal AND latest &amp;gt; relative_time(now(),"-15m"),"Good", 
                     index!=_internal AND latest &amp;lt;= relative_time(now(),"-15m"), "Missing", 
                     index=_internal AND latest &amp;gt; relative_time(now(),"-15m"), "Heartbeat", 
                     1==1, "Missing"), 
       realLatest = strftime(latest,"%c")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Standard disclaimer: don't use &lt;FONT face="courier new,courier"&gt;index=*&lt;/FONT&gt; in production.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 13:11:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645262#M109794</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-06-01T13:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Query for devices/servers not reporting to Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645278#M109797</link>
      <description>&lt;P&gt;This is the error I am getting after running the query:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="waJesu_0-1685552569002.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/25629i00E50CF83E9CD79D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="waJesu_0-1685552569002.png" alt="waJesu_0-1685552569002.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 17:02:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645278#M109797</guid>
      <dc:creator>waJesu</dc:creator>
      <dc:date>2023-05-31T17:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Query for devices/servers not reporting to Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645284#M109798</link>
      <description>&lt;P&gt;I dropped a comma in my reply.&amp;nbsp; It's fixed.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 17:31:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645284#M109798</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-05-31T17:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Query for devices/servers not reporting to Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645337#M109803</link>
      <description>&lt;P&gt;Thank you. I think you forgot to attach the corrected query.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 11:10:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645337#M109803</guid>
      <dc:creator>waJesu</dc:creator>
      <dc:date>2023-06-01T11:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Query for devices/servers not reporting to Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645341#M109805</link>
      <description>&lt;P&gt;Didn't forget.&amp;nbsp; The correction is in the original query.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 12:30:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645341#M109805</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-06-01T12:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Query for devices/servers not reporting to Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645345#M109807</link>
      <description>&lt;P&gt;I am not sure why it's returning "Missing only even on devices that are reporting. Maybe the query needs a tweak?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 12:47:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645345#M109807</guid>
      <dc:creator>waJesu</dc:creator>
      <dc:date>2023-06-01T12:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Query for devices/servers not reporting to Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645356#M109809</link>
      <description>&lt;P&gt;Query has been tweaked.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 13:12:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645356#M109809</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-06-01T13:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Query for devices/servers not reporting to Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645367#M109810</link>
      <description>&lt;P&gt;Maybe I am missing something. It's still returning "Missing" for everything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 13:29:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645367#M109810</guid>
      <dc:creator>waJesu</dc:creator>
      <dc:date>2023-06-01T13:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Query for devices/servers not reporting to Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645384#M109815</link>
      <description>&lt;P&gt;Please have a look at the &lt;FONT face="courier new,courier"&gt;case&lt;/FONT&gt; function and verify the logic there meets your business requirements.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 14:33:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645384#M109815</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-06-01T14:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Query for devices/servers not reporting to Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645401#M109822</link>
      <description>&lt;P&gt;I think it does. We want the query to return devices sending logs as Good, those not reporting as Missing and those missing yet have a heartbeat as Heartbeat. That's what the case function is saying. I am actually surprised I am not getting expected results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 15:28:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645401#M109822</guid>
      <dc:creator>waJesu</dc:creator>
      <dc:date>2023-06-01T15:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Query for devices/servers not reporting to Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645521#M109841</link>
      <description>&lt;P&gt;Good morning.&amp;nbsp; Any new thoughts as to why my results are showing "Missing" only even for devices/servers I know to be reporting? Anything to tweak the query somehow?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 10:46:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645521#M109841</guid>
      <dc:creator>waJesu</dc:creator>
      <dc:date>2023-06-02T10:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Query for devices/servers not reporting to Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645570#M109843</link>
      <description>&lt;P&gt;Good morning.&amp;nbsp; Any new thoughts as to why my results are showing "Missing" only even for devices/servers I know to be reporting? Anything to tweak the query somehow?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 14:52:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-search-for-devices-servers-not-reporting-to-Splunk/m-p/645570#M109843</guid>
      <dc:creator>waJesu</dc:creator>
      <dc:date>2023-06-02T14:52:49Z</dc:date>
    </item>
  </channel>
</rss>

