<?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 could not display field value that is null in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332847#M176918</link>
    <description>&lt;P&gt;ok ..so your lookup contains two entry one with ipexist containing value and one with null ....from where you are populating this lookup ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="printerlinuxlog"|eval ipexist=coalesce(ipexist,"source_IP")| lookup hp_message outcome as outcome message as message ipexist as ipexist OUTPUT siem_severity as severity_level syslog_severity as severity
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;here it matches with lookup containing value for ipexist field but one with null value in ipexist has correct severity_level but its not matched...so either you need to remove this duplicate entry .....so how are you populating this lookup?&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jan 2018 06:50:40 GMT</pubDate>
    <dc:creator>493669</dc:creator>
    <dc:date>2018-01-25T06:50:40Z</dc:date>
    <item>
      <title>Lookup could not display field value that is null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332826#M176897</link>
      <description>&lt;P&gt;I have a field called "ipexist" in the dataset that have two values; empty(Which is defaulted as null in Splunk) and a string value. &lt;/P&gt;

&lt;P&gt;I want to use lookup command to obtain two other fields but strangely some events that have null value for ipexist could not display the said two other fields. Below is the sample event with the said fields.&lt;BR /&gt;
&lt;IMG src="https://imgur.com/a/JY7jZ" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Above the image you can see the top event does not have "severity" and "severity_level" field but the two below have it. I would like to know how to still display the fields despite having a null value for "ipexist"&lt;/P&gt;

&lt;P&gt;Edit;&lt;BR /&gt;
Updated image since the first screenshot had some issues &lt;IMG src="https://community.splunk.com/storage/temp/225848-sample.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Update;&lt;BR /&gt;
I forgot to mention that some events do not have the value "source_IP". The field "ipexist" uses "source_IP" as its value,&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:49:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332826#M176897</guid>
      <dc:creator>LeeZeeYuen</dc:creator>
      <dc:date>2020-09-29T17:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup could not display field value that is null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332827#M176898</link>
      <description>&lt;P&gt;Hi LeeZeeYuen,&lt;/P&gt;

&lt;P&gt;Are you using ipexist field for mapping in lookup?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 13:28:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332827#M176898</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-01-24T13:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup could not display field value that is null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332828#M176899</link>
      <description>&lt;P&gt;@LeeZeeYuen, I think you would need to post your screenshot again for the community to help. You can upload to image sharing site and then add the link using image button while posting your comment/update to question. &lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 20:21:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332828#M176899</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-01-24T20:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup could not display field value that is null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332829#M176900</link>
      <description>&lt;P&gt;Yes the command used for lookup is&lt;/P&gt;

&lt;P&gt;index="printerlinuxlog"&lt;BR /&gt;
| lookup hp_message outcome as outcome message as message ipexist as ipexist OUTPUT siem_severity as severity_level syslog_severity as severity&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:50:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332829#M176900</guid>
      <dc:creator>LeeZeeYuen</dc:creator>
      <dc:date>2020-09-29T17:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup could not display field value that is null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332830#M176901</link>
      <description>&lt;P&gt;Ah sorry I didn't know the screenshot wasn't working. Thanks for the heads up!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 00:41:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332830#M176901</guid>
      <dc:creator>LeeZeeYuen</dc:creator>
      <dc:date>2018-01-25T00:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup could not display field value that is null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332831#M176902</link>
      <description>&lt;P&gt;probably the most direct way to deal with it would be to do something like this before your lookup...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval ipexist=coalesce(ipexist,"")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;... and set up the lookup table itself to have a blank instead of a NULL.  &lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 01:19:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332831#M176902</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-01-25T01:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup could not display field value that is null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332832#M176903</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;&amp;lt;snip&amp;gt; | fillnull ipexist value=unknown | lookup yourlookup ipexits output yourfields | &amp;lt;/snip&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this would work. &lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 01:51:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332832#M176903</guid>
      <dc:creator>nabeel652</dc:creator>
      <dc:date>2018-01-25T01:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup could not display field value that is null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332833#M176904</link>
      <description>&lt;P&gt;Thank you for the suggestion but I tried it and it didn't work.  The lookup table have blank value which Splunk comprehend it as italic null. The event would not display the the two output-ed fields. However, it did declare the null value of "ipexist" as blank.&lt;/P&gt;

&lt;P&gt;This is the command used&lt;BR /&gt;
&lt;IMG src="https://imgur.com/a/lYD3W" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;The results:&lt;BR /&gt;
&lt;IMG src="https://imgur.com/a/eoUCy" alt="alt text" /&gt;&lt;BR /&gt;
Image shown that it display "ipexist=" but no signs of "severity" and "severity_level".&lt;/P&gt;

&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 02:35:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332833#M176904</guid>
      <dc:creator>LeeZeeYuen</dc:creator>
      <dc:date>2018-01-25T02:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup could not display field value that is null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332834#M176905</link>
      <description>&lt;P&gt;I tried using fillnull before on "ipexist" but it would not display the other two output-ed lookup field&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 02:36:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332834#M176905</guid>
      <dc:creator>LeeZeeYuen</dc:creator>
      <dc:date>2018-01-25T02:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup could not display field value that is null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332835#M176906</link>
      <description>&lt;P&gt;try below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="printerlinuxlog"|eval ipexist=coalesce(ipexist,"source_IP")| lookup hp_message outcome as outcome message as message ipexist as ipexist OUTPUT siem_severity as severity_level syslog_severity as severity
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if it works!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 03:22:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332835#M176906</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-25T03:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup could not display field value that is null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332836#M176907</link>
      <description>&lt;P&gt;Hello 493669,&lt;BR /&gt;
I tried and it did display the OUTPUT field but it didn't match with the dataset&lt;BR /&gt;
&lt;IMG src="https://imgur.com/a/Mp37w" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;In the image, it shows that the event without the string "source_IP" having a "severity_level" of Medium while in fact the dataset meant it to be Low. Thanks for the answer though! Really appreciates it&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:50:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332836#M176907</guid>
      <dc:creator>LeeZeeYuen</dc:creator>
      <dc:date>2020-09-29T17:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup could not display field value that is null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332837#M176908</link>
      <description>&lt;P&gt;your image is broken ...not able to see&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 05:47:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332837#M176908</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-25T05:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup could not display field value that is null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332838#M176909</link>
      <description>&lt;P&gt;Ah sorry, adding image url seems weird on Splunk. Is this &lt;A href="https://imgur.com/a/Mp37w"&gt;image&lt;/A&gt; better?&lt;BR /&gt;
&lt;A href="https://imgur.com/a/Mp37w"&gt;https://imgur.com/a/Mp37w&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 05:51:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332838#M176909</guid>
      <dc:creator>LeeZeeYuen</dc:creator>
      <dc:date>2018-01-25T05:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup could not display field value that is null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332839#M176910</link>
      <description>&lt;P&gt;Thanks..could you please provide your lookup table also..&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 05:55:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332839#M176910</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-25T05:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup could not display field value that is null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332840#M176911</link>
      <description>&lt;P&gt;Okay I will provide the message of CCC Logging Started with and without the source_IP as a sample.&lt;/P&gt;

&lt;P&gt;This is the one with source_IP&lt;BR /&gt;
&lt;A href="https://imgur.com/a/cKbhM"&gt;https://imgur.com/a/cKbhM&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This is the one without source_IP&lt;BR /&gt;
&lt;A href="https://imgur.com/a/HTzBw"&gt;https://imgur.com/a/HTzBw&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Both are in the same dataset&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 05:59:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332840#M176911</guid>
      <dc:creator>LeeZeeYuen</dc:creator>
      <dc:date>2018-01-25T05:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup could not display field value that is null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332841#M176912</link>
      <description>&lt;P&gt;ok so it seems your lookup table has null value for 'ipexist' field and not in index. if you&lt;BR /&gt;
try below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="printerlinuxlog"|eval ipexist=coalesce(ipexist,"source_IP")| lookup hp_message outcome as outcome message as message  OUTPUT siem_severity as severity_level syslog_severity as severity
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;are you receiving any output?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 06:10:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332841#M176912</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-25T06:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup could not display field value that is null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332842#M176913</link>
      <description>&lt;P&gt;Yes I am receiving output but instead of having one value for "severity_level" and "severity" I got two due to not enough mapping for accuracy. This is because the message extracted from the index for certain events are the same in dataset. &lt;/P&gt;

&lt;P&gt;For example, two same message will have different severity_level as there are other conditions. In this case, the message for CCC Logging Started without source_IP have severity_level of Low while CCC Logging Started with souce_IP will have Medium severity_level&lt;/P&gt;

&lt;P&gt;Sample for message="CCC Logging Started" image&lt;BR /&gt;
&lt;A href="https://imgur.com/a/fEtLj" target="_blank"&gt;https://imgur.com/a/fEtLj&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Commands used are &lt;BR /&gt;
    index="printerlinuxlog"&lt;BR /&gt;
    |eval ipexist=coalesce(ipexist,"source_IP")&lt;BR /&gt;
    | lookup hp_message outcome as outcome message as message  OUTPUT siem_severity as severity_level syslog_severity as severity&lt;BR /&gt;
    | search CCC&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:50:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332842#M176913</guid>
      <dc:creator>LeeZeeYuen</dc:creator>
      <dc:date>2020-09-29T17:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup could not display field value that is null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332843#M176914</link>
      <description>&lt;P&gt;if you have &lt;CODE&gt;severity_level&lt;/CODE&gt; and &lt;CODE&gt;severity&lt;/CODE&gt; in your index already then why you are trying to join it with lookup? correct me if I am wrong.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 06:29:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332843#M176914</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-25T06:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup could not display field value that is null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332844#M176915</link>
      <description>&lt;P&gt;or do you want to replace &lt;CODE&gt;severity_level&lt;/CODE&gt; and &lt;CODE&gt;severity&lt;/CODE&gt; from lookup?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 06:35:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332844#M176915</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-01-25T06:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup could not display field value that is null</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332845#M176916</link>
      <description>&lt;P&gt;Haha its alright. I am sorry if I do not understand your question but I do not have severity_level and severity in the index. Value for severity_level are like "Low", "Medium", "High" and "Critical"&lt;/P&gt;

&lt;P&gt;As for severity, it's the type of severity. Examples of the values are "Notice", "Info" and "Warning".&lt;/P&gt;

&lt;P&gt;By default the index would not have said fields. This is the sample image of fields available without using the lookup command,&lt;BR /&gt;
&lt;A href="https://imgur.com/a/rgLmq" target="_blank"&gt;https://imgur.com/a/rgLmq&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:50:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-could-not-display-field-value-that-is-null/m-p/332845#M176916</guid>
      <dc:creator>LeeZeeYuen</dc:creator>
      <dc:date>2020-09-29T17:50:23Z</dc:date>
    </item>
  </channel>
</rss>

