<?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: SPL query to search sourcetype not reporting by host in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-sourcetype-not-reporting-by-host/m-p/640252#M221858</link>
    <description>&lt;P&gt;This has been solved many times.&amp;nbsp; Start here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.duanewaddle.com/proving-a-negative/" rel="nofollow noopener noreferrer" target="_blank"&gt;https://www.duanewaddle.com/proving-a-negative/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Then take a look at this app:&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/4621" target="_blank"&gt;https://splunkbase.splunk.com/app/4621&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also take a look at Splunk's built-in feature for this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/DMC/Configureforwardermonitoring" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/DMC/Configureforwardermonitoring&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It is actually a considerably deeper and more nuanced problem than it appears and will need considerable tuning (probably ongoing).&lt;/P&gt;</description>
    <pubDate>Mon, 17 Apr 2023 16:56:00 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2023-04-17T16:56:00Z</dc:date>
    <item>
      <title>How to search sourcetype not reporting by host?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-sourcetype-not-reporting-by-host/m-p/640200#M221842</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;
&lt;P&gt;I need your assistance to create a search that provides the following:&lt;BR /&gt;SPL query I will use it to look for sourcetypes that are not reporting, my focus here is on the nix sourcetypes.&lt;BR /&gt;&lt;BR /&gt;I have a CSV lookup file called "&lt;SPAN&gt;os_sourcetypes.csv&lt;/SPAN&gt;" that contains a list of 27 different sourcetypes.&lt;BR /&gt;I have another CSV lookup file called "onboarded_hosts.csv" that&amp;nbsp;contains a list of&amp;nbsp;onboarded hosts on Splunk with their IP addresses and a Bunit.&lt;BR /&gt;&lt;BR /&gt;What I want is to have something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="muradgh_0-1681732875540.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24944iC232F75E5D7E724E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="muradgh_0-1681732875540.png" alt="muradgh_0-1681732875540.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;My search is below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| tstats max(_time) as lastTime where index=os by host sourcetype 
| join host 
    [| inputlookup onboarded_hosts.csv 
    | eval host=lower(host) 
    | search Bunit=production] 
| join sourcetype 
    [| inputlookup os_sourcetypes.csv ] 
| eval current_time=now() 
| eval timediff=round((current_time-lastTime)/60,2) 
| sort -timediff 
| convert ctime(current_time) , ctime(lastTime)
| table host IP sourcetype timediff lastTime&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;In the above search, I'm searching only for the "production" Bunit (which has 45 hosts)&lt;BR /&gt;What I'm expecting is: (27 sourcetypes * 45 hosts = 1215 statistics)&amp;nbsp;&lt;BR /&gt;But I'm having only 637!&lt;BR /&gt;&lt;BR /&gt;What I have tested is trying to search for only one host from the&amp;nbsp;"production" Bunit (host1 for example) just for testing purposes, and found that this host returns only 23 sourcetypes out of 27!&lt;BR /&gt;What I need is that all the hosts to show all of the 27 sourcetypes, even if one of the sourcetypes for one host is never seen before to show NULL.&lt;BR /&gt;&lt;BR /&gt;One more thing: if I select "All time" from the time range picker, the search will take a VERY LONG time to finish, I would like the search to be efficient also.&lt;BR /&gt;&lt;BR /&gt;Can someone please&amp;nbsp;guide me in the right direction?&lt;BR /&gt;&lt;BR /&gt;Thank you all.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2023 09:06:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-sourcetype-not-reporting-by-host/m-p/640200#M221842</guid>
      <dc:creator>muradgh</dc:creator>
      <dc:date>2023-04-18T09:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: SPL query to search sourcetype not reporting by host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-sourcetype-not-reporting-by-host/m-p/640207#M221846</link>
      <description>&lt;P&gt;Finding something that is not there is not Splunk's strong suit.&amp;nbsp; See this blog entry for a good write-up on it.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.duanewaddle.com/proving-a-negative/" target="_blank"&gt;https://www.duanewaddle.com/proving-a-negative/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 13:00:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-sourcetype-not-reporting-by-host/m-p/640207#M221846</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-04-17T13:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: SPL query to search sourcetype not reporting by host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-sourcetype-not-reporting-by-host/m-p/640252#M221858</link>
      <description>&lt;P&gt;This has been solved many times.&amp;nbsp; Start here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.duanewaddle.com/proving-a-negative/" rel="nofollow noopener noreferrer" target="_blank"&gt;https://www.duanewaddle.com/proving-a-negative/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Then take a look at this app:&lt;/P&gt;&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/4621" target="_blank"&gt;https://splunkbase.splunk.com/app/4621&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also take a look at Splunk's built-in feature for this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.4/DMC/Configureforwardermonitoring" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.4/DMC/Configureforwardermonitoring&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It is actually a considerably deeper and more nuanced problem than it appears and will need considerable tuning (probably ongoing).&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 16:56:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-sourcetype-not-reporting-by-host/m-p/640252#M221858</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-17T16:56:00Z</dc:date>
    </item>
  </channel>
</rss>

