<?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: How to get list of host and source type which are not not sending data for last 24 hour. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-list-of-host-and-source-type-which-are-not-not/m-p/114463#M30270</link>
    <description>&lt;P&gt;Thanks Alacercogitatus for the reply.&lt;BR /&gt;
I have executed your search query that is working fine. This query is also helpful for me, but here I have different requirement as following.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Host      SourceType      Status&lt;/STRONG&gt;&lt;BR /&gt;
host_1      sourcetype_1        Sending data&lt;BR /&gt;
host_1      sourcetype_2        sending data&lt;BR /&gt;
host_1      sourcetype_3        Not sending data for Last 24 hours&lt;/P&gt;

&lt;P&gt;host_2      sourcetype_1        sending data&lt;BR /&gt;
host_2      sourcetype_2        Not sending data for last 24 hours&lt;BR /&gt;
host_2      sourcetype_3        sending data&lt;/P&gt;

&lt;P&gt;Required OutPut:&lt;BR /&gt;
host_1      Sourcetype_3    LastTime&lt;BR /&gt;
host_2      sourcetype_2        LastTime&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 06:38:40 GMT</pubDate>
    <dc:creator>chandanjaisal</dc:creator>
    <dc:date>2020-09-29T06:38:40Z</dc:date>
    <item>
      <title>How to get list of host and source type which are not not sending data for last 24 hour.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-list-of-host-and-source-type-which-are-not-not/m-p/114461#M30268</link>
      <description>&lt;P&gt;I have couples of host and each host has multiple source type, I want to list down host and source type which are not sending data for last 24 hours. &lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2015 11:15:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-list-of-host-and-source-type-which-are-not-not/m-p/114461#M30268</guid>
      <dc:creator>chandanjaisal</dc:creator>
      <dc:date>2015-07-09T11:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get list of host and source type which are not not sending data for last 24 hour.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-list-of-host-and-source-type-which-are-not-not/m-p/114462#M30269</link>
      <description>&lt;P&gt;Run this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|noop  |append [ |metadata type=hosts | table *] | append [|metadata type=sourcetypes | table *] | eval t = now() - lastTime | where t &amp;gt; 86400 | eval name = coalesce(host,sourcetype)| table name t lastTime totalCount type |rename t as "Seconds since Event" | convert ctime(lastTime) timeformat="%m/%d/%Y %H:%M:%S %z"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What is it doing? Well, &lt;CODE&gt;noop&lt;/CODE&gt; stops Splunk from searching, and then we use two &lt;CODE&gt;metadata&lt;/CODE&gt; commands to pull metadata information on hosts and sourcetypes. A little bit of eval/table/rename/convert trickery, and viola! A table of the hosts and sourcetypes with no events in the last 24 hours.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2015 11:41:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-list-of-host-and-source-type-which-are-not-not/m-p/114462#M30269</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2015-07-09T11:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get list of host and source type which are not not sending data for last 24 hour.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-list-of-host-and-source-type-which-are-not-not/m-p/114463#M30270</link>
      <description>&lt;P&gt;Thanks Alacercogitatus for the reply.&lt;BR /&gt;
I have executed your search query that is working fine. This query is also helpful for me, but here I have different requirement as following.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Host      SourceType      Status&lt;/STRONG&gt;&lt;BR /&gt;
host_1      sourcetype_1        Sending data&lt;BR /&gt;
host_1      sourcetype_2        sending data&lt;BR /&gt;
host_1      sourcetype_3        Not sending data for Last 24 hours&lt;/P&gt;

&lt;P&gt;host_2      sourcetype_1        sending data&lt;BR /&gt;
host_2      sourcetype_2        Not sending data for last 24 hours&lt;BR /&gt;
host_2      sourcetype_3        sending data&lt;/P&gt;

&lt;P&gt;Required OutPut:&lt;BR /&gt;
host_1      Sourcetype_3    LastTime&lt;BR /&gt;
host_2      sourcetype_2        LastTime&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:38:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-list-of-host-and-source-type-which-are-not-not/m-p/114463#M30270</guid>
      <dc:creator>chandanjaisal</dc:creator>
      <dc:date>2020-09-29T06:38:40Z</dc:date>
    </item>
  </channel>
</rss>

