<?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: What does the coalesce command mean in this Splunk search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/What-does-the-coalesce-command-mean-in-this-Splunk-search/m-p/239838#M71268</link>
    <description>&lt;P&gt;The &lt;CODE&gt;coalesce&lt;/CODE&gt; command is essentially a simplified case or if-then-else statement.  It returns the first of its arguments that is not null.  In your example, fieldA is set to the empty string if it is null.  See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/CommonEvalFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/CommonEvalFunctions&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2016 14:54:14 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2016-11-16T14:54:14Z</dc:date>
    <item>
      <title>What does the coalesce command mean in this Splunk search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-does-the-coalesce-command-mean-in-this-Splunk-search/m-p/239837#M71267</link>
      <description>&lt;P&gt;What does the below coalesce command mean in this Splunk search? Any explanation would be appreciated&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval fieldA=coalesce(fieldA,"")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Nov 2016 14:44:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-does-the-coalesce-command-mean-in-this-Splunk-search/m-p/239837#M71267</guid>
      <dc:creator>pavanae</dc:creator>
      <dc:date>2016-11-16T14:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: What does the coalesce command mean in this Splunk search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-does-the-coalesce-command-mean-in-this-Splunk-search/m-p/239838#M71268</link>
      <description>&lt;P&gt;The &lt;CODE&gt;coalesce&lt;/CODE&gt; command is essentially a simplified case or if-then-else statement.  It returns the first of its arguments that is not null.  In your example, fieldA is set to the empty string if it is null.  See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/CommonEvalFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/CommonEvalFunctions&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 14:54:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-does-the-coalesce-command-mean-in-this-Splunk-search/m-p/239838#M71268</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-11-16T14:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: What does the coalesce command mean in this Splunk search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-does-the-coalesce-command-mean-in-this-Splunk-search/m-p/239839#M71269</link>
      <description>&lt;P&gt;Hi pavanae,&lt;BR /&gt;
are you sure that this function runs?&lt;BR /&gt;
every way, coalesce "takes an arbitrary number of arguments and returns the first value that is not null", so  there is no sense to put a null value in this function (see &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1/SearchReference/CommonEvalFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.1/SearchReference/CommonEvalFunctions&lt;/A&gt;).&lt;BR /&gt;
If you want to give to FieldA a different value when it's null, you have to use &lt;CODE&gt;eval FieldA=if(isnull(FieldA),"X",FieldA)&lt;/CODE&gt;.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 14:59:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-does-the-coalesce-command-mean-in-this-Splunk-search/m-p/239839#M71269</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-11-16T14:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: What does the coalesce command mean in this Splunk search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/What-does-the-coalesce-command-mean-in-this-Splunk-search/m-p/239840#M71270</link>
      <description>&lt;P&gt;An empty string ("") is not the same as a null value.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 18:22:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/What-does-the-coalesce-command-mean-in-this-Splunk-search/m-p/239840#M71270</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-11-16T18:22:22Z</dc:date>
    </item>
  </channel>
</rss>

