<?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 Mvappend or Mvjoin only to fill blank spaces? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Mvappend-or-Mvjoin-only-to-fill-blank-spaces/m-p/633346#M220019</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I want to append the results from one field to another, however, I only want to fill the null and blank spaces of the field. For this I tried the following:&lt;BR /&gt;&lt;BR /&gt;| eval FIELD2= if(isnull(FIELD1) OR FIELD1="",mvappend(FIELD2,FIELD1),"")&lt;BR /&gt;&lt;BR /&gt;What happens is that it will substitute the filled slots from FIELD2 with "", so it doesn't do what I need.&lt;/P&gt;
&lt;P&gt;Is there any solution for this?&lt;/P&gt;</description>
    <pubDate>Mon, 06 Mar 2023 14:55:38 GMT</pubDate>
    <dc:creator>PTC_</dc:creator>
    <dc:date>2023-03-06T14:55:38Z</dc:date>
    <item>
      <title>Mvappend or Mvjoin only to fill blank spaces?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mvappend-or-Mvjoin-only-to-fill-blank-spaces/m-p/633346#M220019</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I want to append the results from one field to another, however, I only want to fill the null and blank spaces of the field. For this I tried the following:&lt;BR /&gt;&lt;BR /&gt;| eval FIELD2= if(isnull(FIELD1) OR FIELD1="",mvappend(FIELD2,FIELD1),"")&lt;BR /&gt;&lt;BR /&gt;What happens is that it will substitute the filled slots from FIELD2 with "", so it doesn't do what I need.&lt;/P&gt;
&lt;P&gt;Is there any solution for this?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2023 14:55:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mvappend-or-Mvjoin-only-to-fill-blank-spaces/m-p/633346#M220019</guid>
      <dc:creator>PTC_</dc:creator>
      <dc:date>2023-03-06T14:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Mvappend or Mvjoin only to fill blank spaces</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mvappend-or-Mvjoin-only-to-fill-blank-spaces/m-p/633350#M220020</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;eval&lt;/FONT&gt; command is doing what you told it to do - replace FIELD2 with an empty string if FIELD1 is not null or empty.&lt;/P&gt;&lt;P&gt;Before we can suggest an alternative command, please clarify the use case.&amp;nbsp; Using concrete, sanitized examples, please show what the output should be given some sample inputs.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 21:19:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mvappend-or-Mvjoin-only-to-fill-blank-spaces/m-p/633350#M220020</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-03-05T21:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Mvappend or Mvjoin only to fill blank spaces</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mvappend-or-Mvjoin-only-to-fill-blank-spaces/m-p/633351#M220021</link>
      <description>&lt;P&gt;Let's say both fields look like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1" width="44.44409473172445%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;FIELD1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;FIELD2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;INFO2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;INFO3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;INFO1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;INFO4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to append, for example, INFO2 and INFO3 to the blank spaces in FIELD1 and the command does that.&lt;BR /&gt;&lt;/SPAN&gt;However, since "INFO1" fails the condition, it will be replaced with empty string, which I don't want to. The end result will look like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1" width="44.44409473172445%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;FIELD1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;FIELD2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;INFO2&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;INFO2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;INFO3&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;INFO3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;INFO4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the end, I only want to fill FIELD1 blank spaces with FIELD2 information.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 21:26:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mvappend-or-Mvjoin-only-to-fill-blank-spaces/m-p/633351#M220021</guid>
      <dc:creator>PTC_</dc:creator>
      <dc:date>2023-03-05T21:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Mvappend or Mvjoin only to fill blank spaces</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mvappend-or-Mvjoin-only-to-fill-blank-spaces/m-p/633358#M220022</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;said, your illustrated code is trying to set FIELD2, as opposed to FIELD1 in your illustrated results. &amp;nbsp;To get your illustrated results, the left-hand side must be FIELD1, not FIELD2.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval FIELD1= if(isnull(FIELD1) OR FIELD1="",mvappend(FIELD2,FIELD1),"")&lt;/LI-CODE&gt;&lt;P&gt;This said, why do you want to mvappend or mvjoin a field (FIELD1) that is verifiably blank? &amp;nbsp;Isn't an assignment of FIELD2 value simpler?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval FIELD1= if(isnull(FIELD1) OR FIELD1="", FIELD2,"")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 23:35:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mvappend-or-Mvjoin-only-to-fill-blank-spaces/m-p/633358#M220022</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-03-05T23:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Mvappend or Mvjoin only to fill blank spaces</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mvappend-or-Mvjoin-only-to-fill-blank-spaces/m-p/633359#M220023</link>
      <description>&lt;P&gt;Maybe I didn't explain it well but anyway I don't wish to obtain those results.&lt;BR /&gt;Dunno how can I explain it better but I used this command and it works for what I need to do:&lt;BR /&gt;&lt;BR /&gt;| eval FIELD1= mvjoin(FIELD1,FIELD2)&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2023 23:42:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mvappend-or-Mvjoin-only-to-fill-blank-spaces/m-p/633359#M220023</guid>
      <dc:creator>PTC_</dc:creator>
      <dc:date>2023-03-05T23:42:20Z</dc:date>
    </item>
  </channel>
</rss>

