<?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 find the missing source in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-missing-source/m-p/136335#M37286</link>
    <description>&lt;P&gt;You can use metadata. In a new search box:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; |metasearch host=&amp;lt;your_hosts&amp;gt; | streamstats dc(host) AS src_count by source | stats max(src_count) as cnt by source | where cnt &amp;lt; 2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will search the metadata for the specified hosts, count the number of hosts by source, table the information using stats, and then return the sources with &amp;lt; 2 hosts. Those are the sources that are missing.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Sep 2014 16:17:49 GMT</pubDate>
    <dc:creator>alacercogitatus</dc:creator>
    <dc:date>2014-09-23T16:17:49Z</dc:date>
    <item>
      <title>How to find the missing source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-missing-source/m-p/136334#M37285</link>
      <description>&lt;P&gt;We are receiving various logs from many components. How to build a query to find the missing source.&lt;BR /&gt;
 I got the answer through lookup for unique logs such as /var/adm/corn.log ; /app/abc/srt.log &lt;BR /&gt;
[By comparing the source in events against lookup values]&lt;/P&gt;

&lt;P&gt;But Im not getting for the source which are using wildcards&lt;BR /&gt;
For e.g Application app01 will have two host. Each having various logs&lt;BR /&gt;
host1 - /app/abc/&lt;EM&gt;.log&lt;BR /&gt;
host2- /app/cd/&lt;/EM&gt;.log, /app/bcd/*.log&lt;/P&gt;

&lt;P&gt;How to check these wildcard using sources with standard ones?&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2014 11:17:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-missing-source/m-p/136334#M37285</guid>
      <dc:creator>splunkn</dc:creator>
      <dc:date>2014-09-23T11:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the missing source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-missing-source/m-p/136335#M37286</link>
      <description>&lt;P&gt;You can use metadata. In a new search box:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; |metasearch host=&amp;lt;your_hosts&amp;gt; | streamstats dc(host) AS src_count by source | stats max(src_count) as cnt by source | where cnt &amp;lt; 2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will search the metadata for the specified hosts, count the number of hosts by source, table the information using stats, and then return the sources with &amp;lt; 2 hosts. Those are the sources that are missing.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2014 16:17:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-find-the-missing-source/m-p/136335#M37286</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2014-09-23T16:17:49Z</dc:date>
    </item>
  </channel>
</rss>

