<?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: Split is converting my empty strings back into null? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Split-is-converting-my-empty-strings-back-into-null/m-p/491954#M137287</link>
    <description>&lt;P&gt;Hi Nick,&lt;/P&gt;

&lt;P&gt;Another quick update:&lt;BR /&gt;
Engineering confirmed and is now planning to have the fix for SPL-182511 in 8.0.4+ (this can still change).&lt;/P&gt;

&lt;P&gt;Please let me know if there is any further questions. &lt;/P&gt;

&lt;P&gt;Maarten Hoogcarspel&lt;BR /&gt;
Splunk Technical Support&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2020 17:26:08 GMT</pubDate>
    <dc:creator>nick405060</dc:creator>
    <dc:date>2020-03-19T17:26:08Z</dc:date>
    <item>
      <title>Split is converting my empty strings back into null?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Split-is-converting-my-empty-strings-back-into-null/m-p/491949#M137282</link>
      <description>&lt;P&gt;This query kills &lt;CODE&gt;morejunk&lt;/CODE&gt; even though it should NOT be doing so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval a="1 2" | eval b="junk" | append [| makeresults | eval b="morejunk"] | fillnull value="" | eval a=split(a," ") | mvexpand a | table a b
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It works if you move the fillnull after the split. I am very aware mvexpand removes null values.&lt;/P&gt;

&lt;P&gt;This is a bug, right? There's no way that split is meant to return &lt;CODE&gt;null&lt;/CODE&gt; for any STRING value it can't split, right? Because otherwise it would be effectively mean &lt;STRONG&gt;death&lt;/STRONG&gt; to use &lt;CODE&gt;split&lt;/CODE&gt; in conjunction with &lt;CODE&gt;mvexpand&lt;/CODE&gt; without a &lt;CODE&gt;fillnull&lt;/CODE&gt; &lt;EM&gt;directly&lt;/EM&gt; in between them.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 00:36:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Split-is-converting-my-empty-strings-back-into-null/m-p/491949#M137282</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2020-01-28T00:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Split is converting my empty strings back into null?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Split-is-converting-my-empty-strings-back-into-null/m-p/491950#M137283</link>
      <description>&lt;P&gt;I think you need to rename the "a", because you define a new by eval and the refer to the old a. Did you try | eval c=split(a, " ")?&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2020 17:41:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Split-is-converting-my-empty-strings-back-into-null/m-p/491950#M137283</guid>
      <dc:creator>jbrocks</dc:creator>
      <dc:date>2020-02-01T17:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Split is converting my empty strings back into null?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Split-is-converting-my-empty-strings-back-into-null/m-p/491951#M137284</link>
      <description>&lt;P&gt;&lt;CODE&gt;mvexpand&lt;/CODE&gt; OR &lt;CODE&gt;stats count by multivalue&lt;/CODE&gt; remove null  values. &lt;BR /&gt;
They are useful. so, I think It' not a bug.&lt;/P&gt;

&lt;P&gt;Conversely, do you have problems removing Null?&lt;BR /&gt;
If it is a known problem, I think &lt;CODE&gt;fillnull&lt;/CODE&gt; can be used.&lt;/P&gt;

&lt;P&gt;Just as &lt;CODE&gt;index=hoo your_field!= ""&lt;/CODE&gt; and &lt;CODE&gt;index= foo NOT your_field=""&lt;/CODE&gt; are different, the treatment of NULL in &lt;EM&gt;Statistics&lt;/EM&gt; and &lt;EM&gt;Events&lt;/EM&gt; seems to be different.&lt;BR /&gt;
In &lt;EM&gt;Events&lt;/EM&gt;&lt;BR /&gt;
Null means there are no &lt;STRONG&gt;fields&lt;/STRONG&gt;.&lt;BR /&gt;
In &lt;EM&gt;Statistics&lt;/EM&gt;&lt;BR /&gt;
Null means that the field has no &lt;STRONG&gt;value&lt;/STRONG&gt;.&lt;BR /&gt;
How do you think this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval z=""
| fields z a b c
| fillnull a b c z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, this result is...&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2020 22:34:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Split-is-converting-my-empty-strings-back-into-null/m-p/491951#M137284</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-01T22:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Split is converting my empty strings back into null?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Split-is-converting-my-empty-strings-back-into-null/m-p/491952#M137285</link>
      <description>&lt;P&gt;I downvoted this post because I don't think you read the question. The entire point is that &lt;CODE&gt;split&lt;/CODE&gt; is converting empty strings into null values even when you use &lt;CODE&gt;fillnull&lt;/CODE&gt; beforehand...&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 20:54:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Split-is-converting-my-empty-strings-back-into-null/m-p/491952#M137285</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2020-02-03T20:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Split is converting my empty strings back into null?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Split-is-converting-my-empty-strings-back-into-null/m-p/491953#M137286</link>
      <description>&lt;P&gt;You can &lt;CODE&gt;eval&lt;/CODE&gt; a field back into itself. This should not be the problem here.&lt;/P&gt;

&lt;P&gt;Also I tried &lt;CODE&gt;eval&lt;/CODE&gt;ing to a new field and then &lt;CODE&gt;mvexpand&lt;/CODE&gt;ing that new field per your suggestion, and it is still the same issue. &lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 20:57:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Split-is-converting-my-empty-strings-back-into-null/m-p/491953#M137286</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2020-02-03T20:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Split is converting my empty strings back into null?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Split-is-converting-my-empty-strings-back-into-null/m-p/491954#M137287</link>
      <description>&lt;P&gt;Hi Nick,&lt;/P&gt;

&lt;P&gt;Another quick update:&lt;BR /&gt;
Engineering confirmed and is now planning to have the fix for SPL-182511 in 8.0.4+ (this can still change).&lt;/P&gt;

&lt;P&gt;Please let me know if there is any further questions. &lt;/P&gt;

&lt;P&gt;Maarten Hoogcarspel&lt;BR /&gt;
Splunk Technical Support&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 17:26:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Split-is-converting-my-empty-strings-back-into-null/m-p/491954#M137287</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2020-03-19T17:26:08Z</dc:date>
    </item>
  </channel>
</rss>

