<?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: How to check empty values in coalesce? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-empty-values-in-coalesce/m-p/685842#M234009</link>
    <description>&lt;LI-CODE lang="markup"&gt;{
  "correlationId" : "3df40a3e4f07-b3ae-8b3ab12fa904",
  
  "timestamp" : "2024-04-03T08:12:12.071Z",
  "content" : {
    "FileName" : "Liability.csv.pgp"
  },
  "applicationName" : "p-abk-finance-api",
  "applicationVersion" : "1.0.1"
  
{
  "correlationId" : "3df40a3e-4f07-b3ae-8b3ab12fa904",
 
  "timestamp" : "2024-04-03T08:12:11.218Z",
  "content" : {
    "message" : "Workday successful",
    "FileList" : [ "_Liability_Accrual.csv.pgp" ],
    "FileName" : ""
  },
  "applicationName" : "p-abk-finance-api",
  {
  "correlationId" : "3df40a3e-4f07-b3ae-8b3ab12fa904",
  
  "timestamp" : "2024-04-03T08:12:10.212Z",
  "content" : {
    "FileName" : ""
  },
  "applicationName" : "p-abk-finance-api",
  "applicationVersion" : "1.0.1",
  "applicationVersion" : "1.0.1"&lt;/LI-CODE&gt;&lt;P&gt;Please find above events&lt;/P&gt;</description>
    <pubDate>Mon, 29 Apr 2024 13:35:24 GMT</pubDate>
    <dc:creator>karthi2809</dc:creator>
    <dc:date>2024-04-29T13:35:24Z</dc:date>
    <item>
      <title>How to check empty values in coalesce?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-empty-values-in-coalesce/m-p/685820#M233998</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a field called File1 and File2&amp;nbsp; and I combined in&amp;nbsp;coalesce .In the table but the value is not getting in the table.But if i use File1 directly the value is showing.what is the issue.How to check this not null or something else.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;|eval FileList=coalesce(File1,File2)&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 12:38:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-empty-values-in-coalesce/m-p/685820#M233998</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2024-04-29T12:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to check empty values in coalesce?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-empty-values-in-coalesce/m-p/685823#M234000</link>
      <description>&lt;P&gt;There are isnull() and isnotnull() functions which can be used to evaluate whether the field is null or not&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 12:49:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-empty-values-in-coalesce/m-p/685823#M234000</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-29T12:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to check empty values in coalesce?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-empty-values-in-coalesce/m-p/685827#M234001</link>
      <description>&lt;P&gt;where to use&amp;nbsp;&lt;SPAN&gt;isnotnull() .The value File1 and File2 comes from stats values.And where to check.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 12:54:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-empty-values-in-coalesce/m-p/685827#M234001</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2024-04-29T12:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to check empty values in coalesce?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-empty-values-in-coalesce/m-p/685832#M234003</link>
      <description>&lt;P&gt;You are going to have to be more specific - what are you currently doing? what are your current results? what results would you like to get? what do your current events look like? etc.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 13:01:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-empty-values-in-coalesce/m-p/685832#M234003</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-29T13:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to check empty values in coalesce?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-empty-values-in-coalesce/m-p/685836#M234006</link>
      <description>&lt;P&gt;Yes,let me explain. This the query the table filename is empty.But when add the field value directly in table for example i added FIle1 in the table its showing the values.if i use File1 directly its showing but why its not showing in filename.&lt;/P&gt;&lt;P&gt;|stats values(filename) as&amp;nbsp; File1 values(FileName) as File2&lt;BR /&gt;|eval filename=colsec(File1,File2)&lt;/P&gt;&lt;P&gt;|table filename&amp;nbsp; File1&lt;/P&gt;&lt;P&gt;In the result:&lt;/P&gt;&lt;TABLE border="1" width="67.69918590895011%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;filename&lt;/TD&gt;&lt;TD width="17.700258397932814%"&gt;File1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="17.700258397932814%"&gt;Test&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 29 Apr 2024 13:08:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-empty-values-in-coalesce/m-p/685836#M234006</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2024-04-29T13:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to check empty values in coalesce?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-empty-values-in-coalesce/m-p/685841#M234008</link>
      <description>&lt;P&gt;There doesn't appear to be anything wrong with what you are doing (I am unable to reproduce what you are seeing with dummy data). I have to conclude it is something about your actual data. Please can you share some anonymised representative sample events which demonstrate the issue you are seeing?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 13:21:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-empty-values-in-coalesce/m-p/685841#M234008</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-29T13:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to check empty values in coalesce?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-empty-values-in-coalesce/m-p/685842#M234009</link>
      <description>&lt;LI-CODE lang="markup"&gt;{
  "correlationId" : "3df40a3e4f07-b3ae-8b3ab12fa904",
  
  "timestamp" : "2024-04-03T08:12:12.071Z",
  "content" : {
    "FileName" : "Liability.csv.pgp"
  },
  "applicationName" : "p-abk-finance-api",
  "applicationVersion" : "1.0.1"
  
{
  "correlationId" : "3df40a3e-4f07-b3ae-8b3ab12fa904",
 
  "timestamp" : "2024-04-03T08:12:11.218Z",
  "content" : {
    "message" : "Workday successful",
    "FileList" : [ "_Liability_Accrual.csv.pgp" ],
    "FileName" : ""
  },
  "applicationName" : "p-abk-finance-api",
  {
  "correlationId" : "3df40a3e-4f07-b3ae-8b3ab12fa904",
  
  "timestamp" : "2024-04-03T08:12:10.212Z",
  "content" : {
    "FileName" : ""
  },
  "applicationName" : "p-abk-finance-api",
  "applicationVersion" : "1.0.1",
  "applicationVersion" : "1.0.1"&lt;/LI-CODE&gt;&lt;P&gt;Please find above events&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 13:35:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-empty-values-in-coalesce/m-p/685842#M234009</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2024-04-29T13:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to check empty values in coalesce?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-empty-values-in-coalesce/m-p/685859#M234013</link>
      <description>&lt;P&gt;"FileName":"" does not produce a null field, it produces a field with an empty string. This is what you are probably seeing. If you want to cope with this, you should set the FileName and filename fields to null() if they are empty strings&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval FileName=if(FileName="", null(), FileName)
| eval filename=if(filename="", null(), filename)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 29 Apr 2024 15:12:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-empty-values-in-coalesce/m-p/685859#M234013</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-29T15:12:28Z</dc:date>
    </item>
  </channel>
</rss>

