<?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: Missing sourcetype from a particular device in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Missing-sourcetype-from-a-particular-device/m-p/496754#M84725</link>
    <description>&lt;P&gt;Hi @surekhasplunk,&lt;/P&gt;

&lt;P&gt;Use &lt;STRONG&gt;metasearch&lt;/STRONG&gt;, replace SOURCETYPEs and HOSTs in below query and check.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metasearch index=INDEXNAME
| stats count by sourcetype, host 
| append 
    [| makeresults 
    | eval sourcetype=split("SOURCETYPE1,SOURCETYPE2,SOURCETYPE3,...,SOURCETYPE10", ","), host=split("HOST1,HOST2,HOST3,....,HOST14", ",") 
    | mvexpand sourcetype 
    | mvexpand host 
    | fields - _time] 
| fillnull value=0 
| stats sum(count) as count by sourcetype, host 
| where count=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And set Trigger Condition as &lt;STRONG&gt;Number of result greater than 0&lt;/STRONG&gt; in alert configuration.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Mar 2020 12:20:21 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2020-03-17T12:20:21Z</dc:date>
    <item>
      <title>Missing sourcetype from a particular device</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Missing-sourcetype-from-a-particular-device/m-p/496753#M84724</link>
      <description>&lt;P&gt;I have a list of 10 sourcetypes and a list of 14 ips . If a particular ip stops sending data for any sourcetype in last 6 hours i should be alerted. How to set it. &lt;BR /&gt;
I tried metadata sourcetype but that gives only missing sourcetypes. &lt;BR /&gt;
If i use only metadata host i get only missing hosts &lt;BR /&gt;
but how to get a combination of missing host and sourcetype. &lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 10:34:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Missing-sourcetype-from-a-particular-device/m-p/496753#M84724</guid>
      <dc:creator>surekhasplunk</dc:creator>
      <dc:date>2020-03-17T10:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Missing sourcetype from a particular device</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Missing-sourcetype-from-a-particular-device/m-p/496754#M84725</link>
      <description>&lt;P&gt;Hi @surekhasplunk,&lt;/P&gt;

&lt;P&gt;Use &lt;STRONG&gt;metasearch&lt;/STRONG&gt;, replace SOURCETYPEs and HOSTs in below query and check.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metasearch index=INDEXNAME
| stats count by sourcetype, host 
| append 
    [| makeresults 
    | eval sourcetype=split("SOURCETYPE1,SOURCETYPE2,SOURCETYPE3,...,SOURCETYPE10", ","), host=split("HOST1,HOST2,HOST3,....,HOST14", ",") 
    | mvexpand sourcetype 
    | mvexpand host 
    | fields - _time] 
| fillnull value=0 
| stats sum(count) as count by sourcetype, host 
| where count=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And set Trigger Condition as &lt;STRONG&gt;Number of result greater than 0&lt;/STRONG&gt; in alert configuration.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 12:20:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Missing-sourcetype-from-a-particular-device/m-p/496754#M84725</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-17T12:20:21Z</dc:date>
    </item>
  </channel>
</rss>

