<?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: Coalesce two fields with null values in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Coalesce-two-fields-with-null-values/m-p/401383#M4565</link>
    <description>&lt;P&gt;This works great - thanks so much for the quick response!&lt;/P&gt;</description>
    <pubDate>Sat, 01 Jun 2019 00:50:37 GMT</pubDate>
    <dc:creator>lxm30</dc:creator>
    <dc:date>2019-06-01T00:50:37Z</dc:date>
    <item>
      <title>Coalesce two fields with null values</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Coalesce-two-fields-with-null-values/m-p/401380#M4562</link>
      <description>&lt;P&gt;I have two fields and if field1 is empty, I want to use the value in field2. (i.e. I never want to use field2 unless field1 is empty).&lt;/P&gt;

&lt;P&gt;I was trying to use a coalesce function but it doesn't work well with null values.&lt;/P&gt;

&lt;P&gt;Do I have any options beyond using fillnull for field2 with a value of *, coalescing the two and then using rtrim to get rid of the star?&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 19:00:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Coalesce-two-fields-with-null-values/m-p/401380#M4562</guid>
      <dc:creator>lxm30</dc:creator>
      <dc:date>2019-05-31T19:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Coalesce two fields with null values</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Coalesce-two-fields-with-null-values/m-p/401381#M4563</link>
      <description>&lt;P&gt;(By * I mean some value, not necessarily the character "*").&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 19:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Coalesce-two-fields-with-null-values/m-p/401381#M4563</guid>
      <dc:creator>lxm30</dc:creator>
      <dc:date>2019-05-31T19:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Coalesce two fields with null values</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Coalesce-two-fields-with-null-values/m-p/401382#M4564</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval field3=case(isNotNull(field1),field1,isNotNull(field2),field2,1=1, NULL)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;should return field 3 as field1 if it isnt null,field2 if that isnt null and field1 is null and NULL if both are NULL&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 19:57:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Coalesce-two-fields-with-null-values/m-p/401382#M4564</guid>
      <dc:creator>martinpu</dc:creator>
      <dc:date>2019-05-31T19:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Coalesce two fields with null values</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Coalesce-two-fields-with-null-values/m-p/401383#M4565</link>
      <description>&lt;P&gt;This works great - thanks so much for the quick response!&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jun 2019 00:50:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Coalesce-two-fields-with-null-values/m-p/401383#M4565</guid>
      <dc:creator>lxm30</dc:creator>
      <dc:date>2019-06-01T00:50:37Z</dc:date>
    </item>
  </channel>
</rss>

