<?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 filter multivalue  null values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689227#M234888</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Assume that ImpCon is a multivalue field from which you want to remove null values this works for you :&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| eval ImpCon=mvfilter(isnotnull(ImpCon) AND ImpCon!="") 

&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2024 17:16:26 GMT</pubDate>
    <dc:creator>marysan</dc:creator>
    <dc:date>2024-05-31T17:16:26Z</dc:date>
    <item>
      <title>How to filter multivalue  null values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689048#M234846</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I want to filter out null values.In my field the&amp;nbsp;ImpCon having null values.Now i want to filter the values which i dont want to show in the table.I am trying below query .which is showing the null values.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| eval ImpCon=mvmap(ImpConReqID,if(match(ImpConReqID,".+"),"ImpConReqID: ".ImpConReqID,null()))
| eval orcaleid=mvfilter(isnotnull(oracle))
| eval OracleResponse=mvjoin(orcaleid," ")
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 17:15:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689048#M234846</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2024-05-31T17:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter multivalue  null values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689054#M234847</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/205249"&gt;@karthi2809&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I do not understand the use of mvmap command here. Generally, mvmap command is used to perform some iterative operations on the multivalue field. Your SPL currently interpretes as you're trying to map ImpConReqId field with&amp;nbsp; following string: "ImpConReqId: &amp;lt;&amp;lt;value of ImpConReqId&amp;gt;&amp;gt;". And if the "if condition" fails, the value gets updated to null() and then ImpConReqId gets mapped with null() value.&lt;/P&gt;&lt;P&gt;I would suggest you to first filter out the null values using isnull() or isnotnull() functions and then perform multi value operations. Also, if you can share the full SPL query, it would be helpful to assist you better.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Tejas.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 05:46:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689054#M234847</guid>
      <dc:creator>tej57</dc:creator>
      <dc:date>2024-05-30T05:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter multivalue  null values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689061#M234850</link>
      <description>&lt;P&gt;What do you mean it's showing null values - your mvmap statement looks like it's doing what you want it to do, i.e. making sure that it only takes data with at least 1 character.&lt;/P&gt;&lt;P&gt;Can you demonstrate the issue as the mvmap statement works, i.e. this example shows that it will remove the empty middle element&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| fields - _time
| eval ImpConReqID=mvappend("a","","b")
| eval ImpCon=mvmap(ImpConReqID,if(match(ImpConReqID,".+"),"ImpConReqID: ".ImpConReqID, null()))
| eval base_elements=mvcount(ImpConReqID)
| eval reduced_elements=mvcount(ImpCon)&lt;/LI-CODE&gt;&lt;P&gt;What is the relevance of the 2nd two lines of your example to your question?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 06:44:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689061#M234850</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-05-30T06:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter multivalue  null values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689066#M234851</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=mulesoft applicationName=test
| stats values(content.payload.requestID) as Request1 values(content.payload.impConReqId) as ImpConReqId  values(content.payload.batchId) as batch1  values(content.payload{}.batchId) as batch2 values(content.payload{}.impConReqId) as impConReqId1 values(content.payload.OutputParameters.X_REQUEST_ID
) as Request2 BY applicationName,correlationId 
| eval ImpConReqID= coalesce(ImpConReqId,impConReqId1) 
| eval RequestId= coalesce(Request1,Request2) 
| eval batchId= coalesce(batch1,batch2) 
| eval ImpCon=mvmap(ImpConReqID,if(match(ImpConReqID,".+"),"ImpConReqID: ".ImpConReqID,null())) 
| eval batch=mvmap(batchId,if(match(batchId,".+"),"batchId: ".batchId,null()))  
| eval ReqId=mvmap(RequestId,if(match(RequestId,".+"),"RequestId: ".RequestId,null()))  
| eval oracle=mvappend(ImpCon,batch,ReqId) 
| eval orcaleid=mvfilter(isnotnull(oracle)) 
| eval OracleResponse=mvjoin(orcaleid," ") 
| rename  applicationName as ApplicationName correlationId as CorrelationId 
| table ApplicationName OracleResponse CorrelationId&lt;/LI-CODE&gt;&lt;P&gt;This the query which i am trying to get batchID, requestID, ImpconID.If the field value contains then i need to show in the table based on correlationID. Right now I am getting values properly. But in some scenario for the particular correlationID we have two or three ImpconIDwith values and with null values. So i want filter that null value ImpconId in the table .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 07:46:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689066#M234851</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2024-05-30T07:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter multivalue  null values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689067#M234852</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Provided query which i am trying to do.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 07:53:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689067#M234852</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2024-05-30T07:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter multivalue  null values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689157#M234868</link>
      <description>&lt;P&gt;Are you clear on the difference between NULL and EMPTY - your mvmap is checking for non-&lt;STRONG&gt;EMPTY&lt;/STRONG&gt; values of one of the values of the MV field, it is not checking for NULL&lt;/P&gt;&lt;P&gt;This pair of lines is looping each of the MV values of impConReqID and removing only EMPTY values&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval ImpConReqID= coalesce(ImpConReqId,impConReqId1) 
...
| eval ImpCon=mvmap(ImpConReqID,if(match(ImpConReqID,".+"),"ImpConReqID: ".ImpConReqID,null())) &lt;/LI-CODE&gt;&lt;P&gt;so if you have real null values in your MV, then you need to check for null, not empty, i.e.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval ImpCon=mvmap(ImpConReqID,if(isnotnull(ImpConReqID),"ImpConReqID: ".ImpConReqID,null())) &lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 31 May 2024 02:21:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689157#M234868</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-05-31T02:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter multivalue  null values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689185#M234875</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Still the null field values is appearing.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 10:37:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689185#M234875</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2024-05-31T10:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter multivalue  null values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689189#M234876</link>
      <description>&lt;P&gt;Did you understand my comment about the difference between null and empty?&lt;/P&gt;&lt;P&gt;Please confirm that these are null values you are taking about rather than empty values and provide some evidence that you actually have null values. Without that it's impossible to know what is going on&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 11:23:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689189#M234876</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-05-31T11:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter multivalue  null values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689193#M234878</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My actual&amp;nbsp; requirement is that if the field with empty values then I dont want to show in the table.IF some of the correlationID we dont have ImpconID so i used above query to filter the empty values. Now i want to filter the null values from the field. PFA&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 11:36:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689193#M234878</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2024-05-31T11:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter multivalue  null values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689227#M234888</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Assume that ImpCon is a multivalue field from which you want to remove null values this works for you :&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| eval ImpCon=mvfilter(isnotnull(ImpCon) AND ImpCon!="") 

&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 17:16:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689227#M234888</guid>
      <dc:creator>marysan</dc:creator>
      <dc:date>2024-05-31T17:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter multivalue  null values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689330#M234917</link>
      <description>&lt;P&gt;OK, so it seems you have a misunderstanding of the concept of null in Splunk.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Null in Splunk means no value, invisible, not a field value&lt;/LI&gt;&lt;LI&gt;Empty is a value that has no length&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What you have is NOT a null field, it is a field with the text string "null" so to remove values of fields you don't want you can simply do either of these&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval ImpCon=mvmap(ImpConReqID,if(isnotnull(ImpConReqID) AND ImpConReqID!="null", ImpConReqID, null()))
| eval ImpCon2=mvfilter(ImpConReqID!="null")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jun 2024 23:50:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689330#M234917</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-06-02T23:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter multivalue  null values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689417#M234935</link>
      <description>&lt;P&gt;Thanks for the brief&amp;nbsp; explanation.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 15:08:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-multivalue-null-values/m-p/689417#M234935</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2024-06-03T15:08:08Z</dc:date>
    </item>
  </channel>
</rss>

