<?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: Multivalue differences in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/423104#M121447</link>
    <description>&lt;P&gt;Here are several answers of mine that compare multi-value fields and show the differences:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/567851/how-can-i-compare-mvfields-and-get-a-diff.html"&gt;https://answers.splunk.com/answers/567851/how-can-i-compare-mvfields-and-get-a-diff.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/734599/how-to-compare-the-same-search-from-the-previous-d.html"&gt;https://answers.splunk.com/answers/734599/how-to-compare-the-same-search-from-the-previous-d.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/319663/how-to-search-the-difference-between-the-values-of.html"&gt;https://answers.splunk.com/answers/319663/how-to-search-the-difference-between-the-values-of.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/407106/comparing-multivalue-fields-by-percentage.html"&gt;https://answers.splunk.com/answers/407106/comparing-multivalue-fields-by-percentage.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2019 19:16:13 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-07-31T19:16:13Z</dc:date>
    <item>
      <title>How can i find difference b/w each MV Item?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/423103#M121446</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7435iB521C43F6C5287BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How can i find difference b/w each MV Item? &lt;BR /&gt;So far i was able to do only one difference ...&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 14:12:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/423103#M121446</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2022-07-11T14:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue differences</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/423104#M121447</link>
      <description>&lt;P&gt;Here are several answers of mine that compare multi-value fields and show the differences:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/567851/how-can-i-compare-mvfields-and-get-a-diff.html"&gt;https://answers.splunk.com/answers/567851/how-can-i-compare-mvfields-and-get-a-diff.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/734599/how-to-compare-the-same-search-from-the-previous-d.html"&gt;https://answers.splunk.com/answers/734599/how-to-compare-the-same-search-from-the-previous-d.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/319663/how-to-search-the-difference-between-the-values-of.html"&gt;https://answers.splunk.com/answers/319663/how-to-search-the-difference-between-the-values-of.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/407106/comparing-multivalue-fields-by-percentage.html"&gt;https://answers.splunk.com/answers/407106/comparing-multivalue-fields-by-percentage.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 19:16:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/423104#M121447</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-31T19:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue differences</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/423105#M121448</link>
      <description>&lt;P&gt;Thanks @woodcock but not able to locate the appropriate solution. please guide &lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/760695/generic-solution-to-same-column-value-difference.html"&gt;https://answers.splunk.com/answers/760695/generic-solution-to-same-column-value-difference.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 03:10:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/423105#M121448</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-08-01T03:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue differences</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/423106#M121449</link>
      <description>&lt;P&gt;OK, I get it now,  you need diffs between the numbers inside of a single multi-value field!  try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval mvfield="10 30 100 234 64 432 3 632 87"
| makemv mvfield
| eval mvdiff = tonumber(mvindex(mvfield, 0)) - tonumber(mvindex(mvfield, 1))
| foreach 1 2 3 4 5 6 7 8 9 10 11 12 
    [eval _t3Mp = tonumber(mvindex(mvfield, &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;)) - tonumber(mvindex(mvfield, &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt; + 1))
  | eval mvdiff = mvappend(mvdiff, _t3Mp) ]
| fields - _t3Mp
| eval mvdiff = mvappend(mvdiff, "N/A")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Aug 2019 15:36:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/423106#M121449</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-08-01T15:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue differences</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/423107#M121450</link>
      <description>&lt;P&gt;Awesome worked like a charm .. How can i project  the differences on a chart now ?&lt;BR /&gt;
Do i need to expand them first ?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 15:46:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/423107#M121450</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-08-01T15:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue differences</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/423108#M121451</link>
      <description>&lt;P&gt;I am not sure what you mean but maybe just ask a new question because this seems like a separate problem.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 15:55:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/423108#M121451</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-08-01T15:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue differences</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/553336#M157096</link>
      <description>&lt;P&gt;This was much easier for me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;eval diff=mvmap(field1,if(isnull(mvfind(field2,field1)),field1,null))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 14:50:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/553336#M157096</guid>
      <dc:creator>RobertEikel</dc:creator>
      <dc:date>2021-05-27T14:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue differences</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/564250#M196554</link>
      <description>&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/5694/" target="_blank"&gt;MVCompare | Splunkbase&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 02:17:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/564250#M196554</guid>
      <dc:creator>theChain</dc:creator>
      <dc:date>2021-08-23T02:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue differences</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/569315#M198430</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234860"&gt;@RobertEikel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for this small and easy one-liner that solved my issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 11:29:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/569315#M198430</guid>
      <dc:creator>Pamela</dc:creator>
      <dc:date>2021-10-01T11:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue differences</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/605035#M210424</link>
      <description>&lt;P&gt;Beware thet the second parameter for mvfind is a regex, so it should be limited by "^" and "$" if you want the best match.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 23:05:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-i-find-difference-b-w-each-MV-Item/m-p/605035#M210424</guid>
      <dc:creator>pvarelab</dc:creator>
      <dc:date>2022-07-08T23:05:19Z</dc:date>
    </item>
  </channel>
</rss>

