<?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: Query return value if NULL event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Query-return-value-if-NULL-event/m-p/297584#M89801</link>
    <description>&lt;P&gt;Use append to add a blank record for each.  Look at the &lt;CODE&gt;makeresults&lt;/CODE&gt; command for one each way to  do it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=windows sourcetype=ActiveDirectory lrhg@gmail.com OR charlie.brown@peanuts.com 
| append [
    | makeresults 
    | eval name="lrhg@gmail.com charlie.brown@peanuts.com" 
    | makemv name 
    | mvexpand name 
    | table name
    ]
| dedup name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 17 Nov 2017 23:29:23 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-11-17T23:29:23Z</dc:date>
    <item>
      <title>Query return value if NULL event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-return-value-if-NULL-event/m-p/297583#M89800</link>
      <description>&lt;P&gt;I have a query I'm working on where not all the values I feed it are in the index I am querying against.  &lt;/P&gt;

&lt;P&gt;For example suppose I have two emails, &lt;A href="mailto:lrhg@gmail.com"&gt;lrhg@gmail.com&lt;/A&gt; and &lt;A href="mailto:charlie.brown@peanuts.com"&gt;charlie.brown@peanuts.com&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;index=windows sourcetype=ActiveDirectory &lt;A href="mailto:lrhg@gmail.com"&gt;lrhg@gmail.com&lt;/A&gt; OR &lt;A href="mailto:charlie.brown@peanuts.com"&gt;charlie.brown@peanuts.com&lt;/A&gt; | dedup name&lt;/P&gt;

&lt;P&gt;Currently only &lt;A href="mailto:charlie.brown@peanuts.com"&gt;charlie.brown@peanuts.com&lt;/A&gt; is in the index.  As a result I only return the Event for &lt;A href="mailto:charlie.brown@peanuts.com"&gt;charlie.brown@peanuts.com&lt;/A&gt;.  &lt;/P&gt;

&lt;P&gt;I'd like to have my query return two records for &lt;A href="mailto:lrhg@gmail.com"&gt;lrhg@gmail.com&lt;/A&gt; and &lt;A href="mailto:charlie.brown@peanuts.com"&gt;charlie.brown@peanuts.com&lt;/A&gt; even if there are no results for &lt;A href="mailto:lrhg@gmail.com"&gt;lrhg@gmail.com&lt;/A&gt;.  Something where the event is essentially blank except for the &lt;A href="mailto:lrhg@gmail.com"&gt;lrhg@gmail.com&lt;/A&gt; value&lt;/P&gt;

&lt;P&gt;Any thoughts out there?  &lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 21:52:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-return-value-if-NULL-event/m-p/297583#M89800</guid>
      <dc:creator>obiwan1129</dc:creator>
      <dc:date>2017-11-17T21:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Query return value if NULL event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-return-value-if-NULL-event/m-p/297584#M89801</link>
      <description>&lt;P&gt;Use append to add a blank record for each.  Look at the &lt;CODE&gt;makeresults&lt;/CODE&gt; command for one each way to  do it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=windows sourcetype=ActiveDirectory lrhg@gmail.com OR charlie.brown@peanuts.com 
| append [
    | makeresults 
    | eval name="lrhg@gmail.com charlie.brown@peanuts.com" 
    | makemv name 
    | mvexpand name 
    | table name
    ]
| dedup name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Nov 2017 23:29:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-return-value-if-NULL-event/m-p/297584#M89801</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-11-17T23:29:23Z</dc:date>
    </item>
  </channel>
</rss>

