<?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 How do you check missing values from an input list and set an alert when values are missing? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-check-missing-values-from-an-input-list-and-set-an/m-p/388612#M69578</link>
    <description>&lt;P&gt;I have a scenario wherein each heavy forwarder has syslog listeners running. I need an alert or something in the dashboard to show that a  particular heavy forwarder has the following listener down.&lt;/P&gt;

&lt;P&gt;I did the following and was able to list the Splunk heavy forwarder, listener and its associated PID:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=operatingsys host=hf1 OR host=hf2 or host=hf3 source="/var/run/syslog/*" | rex .......... | table host listenername PID
 o/p was as follows 
host listenername PID
hf1   ciscolistener   123
hf1   winlistener      567
hf2   ciscolistener   345
hf2   winlistener      789
hf3   ciscolistener   654
hf3   winlistener      523
hf3  whitecoat          231
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now , I can share an input CSV list as below which is static&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host listenername
hf1   ciscolistener   
hf1   winlistener 
hf1   whitecoat    
hf2   ciscolistener   
hf2   winlistener 
hf2   whitecoat    
hf3   ciscolistener
hf3   whitecoat   
hf3   winlistener
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As you see in my search output, hf2 and hf3 have whitecoat missing (meaning whitecoat listener status is down, and technically, it will not have PID assigned as it is down). I need to show that the listeners on the heavies are down in a dashboard/report, and for an alert to be generated whenever any listener is down on one of our heavy forwarders.&lt;/P&gt;

&lt;P&gt;Open to discussion on using any different approach, if possible to wrap this up&lt;/P&gt;</description>
    <pubDate>Thu, 14 Feb 2019 20:06:46 GMT</pubDate>
    <dc:creator>RishiMandal</dc:creator>
    <dc:date>2019-02-14T20:06:46Z</dc:date>
    <item>
      <title>How do you check missing values from an input list and set an alert when values are missing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-check-missing-values-from-an-input-list-and-set-an/m-p/388612#M69578</link>
      <description>&lt;P&gt;I have a scenario wherein each heavy forwarder has syslog listeners running. I need an alert or something in the dashboard to show that a  particular heavy forwarder has the following listener down.&lt;/P&gt;

&lt;P&gt;I did the following and was able to list the Splunk heavy forwarder, listener and its associated PID:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=operatingsys host=hf1 OR host=hf2 or host=hf3 source="/var/run/syslog/*" | rex .......... | table host listenername PID
 o/p was as follows 
host listenername PID
hf1   ciscolistener   123
hf1   winlistener      567
hf2   ciscolistener   345
hf2   winlistener      789
hf3   ciscolistener   654
hf3   winlistener      523
hf3  whitecoat          231
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now , I can share an input CSV list as below which is static&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host listenername
hf1   ciscolistener   
hf1   winlistener 
hf1   whitecoat    
hf2   ciscolistener   
hf2   winlistener 
hf2   whitecoat    
hf3   ciscolistener
hf3   whitecoat   
hf3   winlistener
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As you see in my search output, hf2 and hf3 have whitecoat missing (meaning whitecoat listener status is down, and technically, it will not have PID assigned as it is down). I need to show that the listeners on the heavies are down in a dashboard/report, and for an alert to be generated whenever any listener is down on one of our heavy forwarders.&lt;/P&gt;

&lt;P&gt;Open to discussion on using any different approach, if possible to wrap this up&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 20:06:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-check-missing-values-from-an-input-list-and-set-an/m-p/388612#M69578</guid>
      <dc:creator>RishiMandal</dc:creator>
      <dc:date>2019-02-14T20:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do you check missing values from an input list and set an alert when values are missing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-check-missing-values-from-an-input-list-and-set-an/m-p/388613#M69579</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=operatingsys host=hf1 OR host=hf2 or host=hf3 source="/var/run/syslog/*" | rex .......... | table host listenername PID
| append [|inputlookup CSV_LIST | fields host listenername ]
| stats latest(*) as * by host listenername
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;By the way, if your CSV has different field names in it, you can use an &lt;CODE&gt;eval&lt;/CODE&gt; or &lt;CODE&gt;rename&lt;/CODE&gt; in the subsearch.&lt;/P&gt;

&lt;P&gt;All the best&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 20:21:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-check-missing-values-from-an-input-list-and-set-an/m-p/388613#M69579</guid>
      <dc:creator>chrisyounger</dc:creator>
      <dc:date>2019-02-14T20:21:51Z</dc:date>
    </item>
  </channel>
</rss>

