<?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 get non matching value by comparing two multivalued field without using join or append? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-non-matching-value-by-comparing-two-multivalued-field/m-p/486475#M83301</link>
    <description>&lt;P&gt;Hi Ankit,&lt;/P&gt;

&lt;P&gt;Try the below code,&lt;BR /&gt;
    &lt;CODE&gt;| makeresults | eval a="1,2,3" | eval b="1,2" | makemv a delim="," | mvexpand a | eval answer=if(like(b,"%".a."%"),0,1) | where answer=1 | fields + answer, a&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;accept and upvote the answer if it helps.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2020 14:30:11 GMT</pubDate>
    <dc:creator>gaurav_maniar</dc:creator>
    <dc:date>2020-01-13T14:30:11Z</dc:date>
    <item>
      <title>How to get non matching value by comparing two multivalued field without using join or append?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-non-matching-value-by-comparing-two-multivalued-field/m-p/486474#M83300</link>
      <description>&lt;P&gt;I want to get value from one multivalued field which are not present in other multivaliued field from same index and event. I do not want to use join or append as they have limitations for number of records.&lt;/P&gt;

&lt;P&gt;eg. |makeresults &lt;BR /&gt;
|eval fieldA="1,2,3", fieldA=split(fieldA,","),fieldB="1,2", fieldB=split(fieldB,",")&lt;/P&gt;

&lt;P&gt;I want to get the value 3 from fieldA&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 09:35:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-non-matching-value-by-comparing-two-multivalued-field/m-p/486474#M83300</guid>
      <dc:creator>ankitgupta15</dc:creator>
      <dc:date>2020-01-13T09:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get non matching value by comparing two multivalued field without using join or append?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-non-matching-value-by-comparing-two-multivalued-field/m-p/486475#M83301</link>
      <description>&lt;P&gt;Hi Ankit,&lt;/P&gt;

&lt;P&gt;Try the below code,&lt;BR /&gt;
    &lt;CODE&gt;| makeresults | eval a="1,2,3" | eval b="1,2" | makemv a delim="," | mvexpand a | eval answer=if(like(b,"%".a."%"),0,1) | where answer=1 | fields + answer, a&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;accept and upvote the answer if it helps.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 14:30:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-non-matching-value-by-comparing-two-multivalued-field/m-p/486475#M83301</guid>
      <dc:creator>gaurav_maniar</dc:creator>
      <dc:date>2020-01-13T14:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get non matching value by comparing two multivalued field without using join or append?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-non-matching-value-by-comparing-two-multivalued-field/m-p/486476#M83302</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;|makeresults
|eval fieldA="1,2,3", fieldA=split(fieldA,","),fieldB="1,2", fieldB=split(fieldB,",")
| rename COMMENT as "this is sample you provide, from here , the logic"
| stats values(fieldB) as fieldB by fieldA
| where isnull(mvfind(fieldB,fieldA))
| fields fieldA
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hi @ankitgupta15&lt;BR /&gt;
how about this?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 14:55:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-non-matching-value-by-comparing-two-multivalued-field/m-p/486476#M83302</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-13T14:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get non matching value by comparing two multivalued field without using join or append?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-non-matching-value-by-comparing-two-multivalued-field/m-p/486477#M83303</link>
      <description>&lt;P&gt;Clever, @to4kawa!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 16:07:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-non-matching-value-by-comparing-two-multivalued-field/m-p/486477#M83303</guid>
      <dc:creator>rmmiller</dc:creator>
      <dc:date>2020-01-13T16:07:09Z</dc:date>
    </item>
  </channel>
</rss>

