<?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: how to set null value ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-to-set-null-value/m-p/377042#M110627</link>
    <description>&lt;P&gt;use null() instead of "null"&lt;/P&gt;</description>
    <pubDate>Mon, 16 Mar 2020 18:37:11 GMT</pubDate>
    <dc:creator>zihenggong</dc:creator>
    <dc:date>2020-03-16T18:37:11Z</dc:date>
    <item>
      <title>how to set null value ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-set-null-value/m-p/377040#M110625</link>
      <description>&lt;P&gt;If the field value is null, the value is null, and if it is not controlled, it is still the original value&lt;/P&gt;

&lt;P&gt;I want to get a field value ,if it is null ,I set it null,if not ,I hope it still the original value&lt;/P&gt;

&lt;P&gt;I use :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = abc_text  | eval Codelocation = if(isnull(Codelocation), "null",Codelocation)|stats  max(_time) as _time  values(Codelocation) as codelocation by source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It  did not achieve the desired effect.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 01:29:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-set-null-value/m-p/377040#M110625</guid>
      <dc:creator>WXY</dc:creator>
      <dc:date>2018-11-06T01:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to set null value ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-set-null-value/m-p/377041#M110626</link>
      <description>&lt;P&gt;@WXY, just a clarification - if the value is null why do you want to set it again to null ? Do you mean you want to convert "space" to null.&lt;/P&gt;

&lt;P&gt;Anyway try this &lt;CODE&gt;|eval Codelocation = if(isnull(Codelocation), null(),Codelocation)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 02:33:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-set-null-value/m-p/377041#M110626</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-11-06T02:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to set null value ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-to-set-null-value/m-p/377042#M110627</link>
      <description>&lt;P&gt;use null() instead of "null"&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 18:37:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-to-set-null-value/m-p/377042#M110627</guid>
      <dc:creator>zihenggong</dc:creator>
      <dc:date>2020-03-16T18:37:11Z</dc:date>
    </item>
  </channel>
</rss>

