<?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: lookup table to show values that do not match in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/lookup-table-to-show-values-that-do-not-match/m-p/37144#M8270</link>
    <description>&lt;P&gt;That was a good answer Drainy.  It worked for me too.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2013 17:45:16 GMT</pubDate>
    <dc:creator>anwarmian</dc:creator>
    <dc:date>2013-06-27T17:45:16Z</dc:date>
    <item>
      <title>lookup table to show values that do not match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-table-to-show-values-that-do-not-match/m-p/37141#M8267</link>
      <description>&lt;P&gt;hi - I have a look-up table of errors codes and descriptions, and a log file with errors codes&lt;/P&gt;

&lt;P&gt;lookup error_descriptions_table look_up_errors as errors OUTPUT description | top description&lt;/P&gt;

&lt;P&gt;This works fine if all the error codes are in the look-up table but if a new error appears in the log it will not display it (or combine them into a null field) - so what i want it to do is display the error description if possible otherwise display the code - in the same column&lt;/P&gt;

&lt;P&gt;so if the look-up table is&lt;/P&gt;

&lt;P&gt;200, perfect&lt;/P&gt;

&lt;P&gt;404, page not found&lt;/P&gt;

&lt;P&gt;500, internal server error&lt;/P&gt;

&lt;P&gt;etc&lt;/P&gt;

&lt;P&gt;log file is&lt;/P&gt;

&lt;P&gt;200&lt;/P&gt;

&lt;P&gt;200&lt;/P&gt;

&lt;P&gt;404&lt;/P&gt;

&lt;P&gt;700&lt;/P&gt;

&lt;P&gt;404&lt;/P&gt;

&lt;P&gt;800&lt;/P&gt;

&lt;P&gt;200&lt;/P&gt;

&lt;P&gt;etc&lt;/P&gt;

&lt;P&gt;At the moment I get &lt;/P&gt;

&lt;P&gt;perfect 3&lt;/P&gt;

&lt;P&gt;null 2&lt;/P&gt;

&lt;P&gt;not found 2&lt;/P&gt;

&lt;P&gt;what i want is&lt;/P&gt;

&lt;P&gt;perfect 3&lt;/P&gt;

&lt;P&gt;not found 2&lt;/P&gt;

&lt;P&gt;700 1&lt;/P&gt;

&lt;P&gt;800 1&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:49:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-table-to-show-values-that-do-not-match/m-p/37141#M8267</guid>
      <dc:creator>stephen123</dc:creator>
      <dc:date>2020-09-28T12:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: lookup table to show values that do not match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-table-to-show-values-that-do-not-match/m-p/37142#M8268</link>
      <description>&lt;P&gt;Appending an eval after your search should do the job, something like;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval description=if(isnull(description),look_up_errors,description)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This basically says, set the field description equal to the look_up_errors value if the field is null (no value is returned from the lookup). Otherwise, if it isn't null then we can assume it has successfully looked up a description and instead keep using it.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:49:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-table-to-show-values-that-do-not-match/m-p/37142#M8268</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2020-09-28T12:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: lookup table to show values that do not match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-table-to-show-values-that-do-not-match/m-p/37143#M8269</link>
      <description>&lt;P&gt;Thanks - that solved the problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2012 11:52:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-table-to-show-values-that-do-not-match/m-p/37143#M8269</guid>
      <dc:creator>stephen123</dc:creator>
      <dc:date>2012-11-19T11:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: lookup table to show values that do not match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-table-to-show-values-that-do-not-match/m-p/37144#M8270</link>
      <description>&lt;P&gt;That was a good answer Drainy.  It worked for me too.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2013 17:45:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-table-to-show-values-that-do-not-match/m-p/37144#M8270</guid>
      <dc:creator>anwarmian</dc:creator>
      <dc:date>2013-06-27T17:45:16Z</dc:date>
    </item>
  </channel>
</rss>

