<?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 Generic Solution to Same Column Value Difference in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Generic-Solution-to-Same-Column-Value-Difference/m-p/406933#M117560</link>
    <description>&lt;P&gt;What would be the best generic solution to &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="https://answers.splunk.com/answers/760677/same-column-value-difference.html?minQuestionBodyLength=80" target="test_blank"&gt;https://answers.splunk.com/answers/760677/same-column-value-difference.html?minQuestionBodyLength=80&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;what if there are multiple As Bs Cs and Ds. As of now mentioned solution is perfect for just 2 same corresponding values.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2019 16:23:59 GMT</pubDate>
    <dc:creator>reverse</dc:creator>
    <dc:date>2019-07-25T16:23:59Z</dc:date>
    <item>
      <title>Generic Solution to Same Column Value Difference</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generic-Solution-to-Same-Column-Value-Difference/m-p/406933#M117560</link>
      <description>&lt;P&gt;What would be the best generic solution to &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="https://answers.splunk.com/answers/760677/same-column-value-difference.html?minQuestionBodyLength=80" target="test_blank"&gt;https://answers.splunk.com/answers/760677/same-column-value-difference.html?minQuestionBodyLength=80&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;what if there are multiple As Bs Cs and Ds. As of now mentioned solution is perfect for just 2 same corresponding values.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 16:23:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generic-Solution-to-Same-Column-Value-Difference/m-p/406933#M117560</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-07-25T16:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Solution to Same Column Value Difference</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generic-Solution-to-Same-Column-Value-Difference/m-p/406934#M117561</link>
      <description>&lt;P&gt;@Vijeta Please visit here.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 16:24:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generic-Solution-to-Same-Column-Value-Difference/m-p/406934#M117561</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-07-25T16:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Solution to Same Column Value Difference</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generic-Solution-to-Same-Column-Value-Difference/m-p/406935#M117562</link>
      <description>&lt;P&gt;@Vijeta @jnudell_2  Please guide.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 18:36:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generic-Solution-to-Same-Column-Value-Difference/m-p/406935#M117562</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-07-31T18:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Solution to Same Column Value Difference</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generic-Solution-to-Same-Column-Value-Difference/m-p/406936#M117563</link>
      <description>&lt;P&gt;Be a little bit more specific.  If you have three values for C1=A of 10, 4, 5.  What would you consider the difference?  Difference only works for two values.  Unless you mean the difference of the most recent value, minus all previous values (Ie; 10 - 4 - 5 = 1).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;C1  C2
---------- 
A   10
A   4
A   5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What would you consider the "difference" for the above?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 20:05:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generic-Solution-to-Same-Column-Value-Difference/m-p/406936#M117563</guid>
      <dc:creator>jnudell_2</dc:creator>
      <dc:date>2019-07-31T20:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Solution to Same Column Value Difference</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generic-Solution-to-Same-Column-Value-Difference/m-p/406937#M117564</link>
      <description>&lt;P&gt;2nd index value - 1st index value &lt;BR /&gt;
3rd  index value  - 2nd index value &lt;/P&gt;

&lt;P&gt;basically 0-&amp;gt;n &lt;BR /&gt;
n- (n+1) &lt;BR /&gt;
where n is the mv index&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; C1  C2
 ---------- 
 A   10
 A   4
 A   5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in this example &lt;/P&gt;

&lt;P&gt;diff will be  -6 and 1&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 23:14:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generic-Solution-to-Same-Column-Value-Difference/m-p/406937#M117564</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-07-31T23:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Solution to Same Column Value Difference</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generic-Solution-to-Same-Column-Value-Difference/m-p/406938#M117565</link>
      <description>&lt;P&gt;Like 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:37:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generic-Solution-to-Same-Column-Value-Difference/m-p/406938#M117565</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-08-01T15:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Generic Solution to Same Column Value Difference</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generic-Solution-to-Same-Column-Value-Difference/m-p/406939#M117566</link>
      <description>&lt;P&gt;THANK YOU !!!!!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 15:46:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generic-Solution-to-Same-Column-Value-Difference/m-p/406939#M117566</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-08-01T15:46:37Z</dc:date>
    </item>
  </channel>
</rss>

