<?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 function not working with extracted fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Coalesce-function-not-working-with-extracted-fields/m-p/476368#M133771</link>
    <description>&lt;P&gt;Thanks it worked. What I observed is due to . in my field name it is not working with coalesce function if I use same name replacing . with _ it is working like below&lt;/P&gt;

&lt;P&gt;index=fios 110788439127166000 &lt;BR /&gt;
   |rename DELPHI_REQUEST.REQUEST.COMMAND as "DELPHI_REQUEST_REQUEST_COMMAND"&lt;BR /&gt;
  | eval check=coalesce(SVC_ID,DELPHI_REQUEST_REQUEST_COMMAND)&lt;BR /&gt;
  | table DELPHI_REQUEST_REQUEST_COMMAND,host,SVC_ID,check&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 04:17:55 GMT</pubDate>
    <dc:creator>poddraj</dc:creator>
    <dc:date>2020-09-30T04:17:55Z</dc:date>
    <item>
      <title>Coalesce function not working with extracted fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Coalesce-function-not-working-with-extracted-fields/m-p/476366#M133769</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am using below simple search where I am using coalesce to test.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=fios 110788439127166000 
| eval check=coalesce(SVC_ID,DELPHI_REQUEST.REQUEST.COMMAND)
| table 
 DELPHI_REQUEST.REQUEST.COMMAND ,host,SVC_ID,check
 |rename DELPHI_REQUEST.REQUEST.COMMAND as "COMMAND"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am getting below output where coalesce is not printing the value of field DELPHI_REQUEST.REQUEST.COMMAND instead it is printing null value.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;                COMMAND                   host     SVC_ID         check
                ------------------------------------------------------------------------------------------
                GET_TOPOLOGY            dlfdam1                        
                GET_TOPOLOGY            dlfdam1                         
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, if I use below query coalesce is working fine.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=fios 110788439127166000 
| eval check=coalesce(SVC_ID,host)
| table DELPHI_REQUEST.REQUEST.COMMAND ,host,SVC_ID,check
|rename DELPHI_REQUEST.REQUEST.COMMAND as "COMMAND"

                COMMAND                     host       SVC_ID      check
                ----------------------------------------------------------------------------------------
                GET_TOPOLOGY            dlfdam1                      dlfdam1                        
                GET_TOPOLOGY            dlfdam1                      dlfdam1    
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can someone let me understand why it is not working with extracted fields and working with host field&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 12:20:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Coalesce-function-not-working-with-extracted-fields/m-p/476366#M133769</guid>
      <dc:creator>poddraj</dc:creator>
      <dc:date>2020-02-19T12:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Coalesce function not working with extracted fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Coalesce-function-not-working-with-extracted-fields/m-p/476367#M133770</link>
      <description>&lt;P&gt;try to first rename then coalesce&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=fios 110788439127166000 
  |rename DELPHI_REQUEST.REQUEST.COMMAND as "COMMAND"
 | eval check=coalesce(SVC_ID,COMMAND)
 | table COMMAND ,host,SVC_ID,check
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Feb 2020 16:51:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Coalesce-function-not-working-with-extracted-fields/m-p/476367#M133770</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-02-19T16:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Coalesce function not working with extracted fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Coalesce-function-not-working-with-extracted-fields/m-p/476368#M133771</link>
      <description>&lt;P&gt;Thanks it worked. What I observed is due to . in my field name it is not working with coalesce function if I use same name replacing . with _ it is working like below&lt;/P&gt;

&lt;P&gt;index=fios 110788439127166000 &lt;BR /&gt;
   |rename DELPHI_REQUEST.REQUEST.COMMAND as "DELPHI_REQUEST_REQUEST_COMMAND"&lt;BR /&gt;
  | eval check=coalesce(SVC_ID,DELPHI_REQUEST_REQUEST_COMMAND)&lt;BR /&gt;
  | table DELPHI_REQUEST_REQUEST_COMMAND,host,SVC_ID,check&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:17:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Coalesce-function-not-working-with-extracted-fields/m-p/476368#M133771</guid>
      <dc:creator>poddraj</dc:creator>
      <dc:date>2020-09-30T04:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Coalesce function not working with extracted fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Coalesce-function-not-working-with-extracted-fields/m-p/476369#M133772</link>
      <description>&lt;P&gt;Or you can try to use ‘FIELD.NAME’ instead of FIELD.NAME.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 17:25:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Coalesce-function-not-working-with-extracted-fields/m-p/476369#M133772</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-02-20T17:25:39Z</dc:date>
    </item>
  </channel>
</rss>

