<?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 Different values in column between two rows in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Different-values-in-column-between-two-rows/m-p/458631#M191283</link>
    <description>&lt;P&gt;Hi , I am having data like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;               Col1                Col2(created from values())
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;row 1         X                       A B C&lt;BR /&gt;
row 2         Y                       A B&lt;/P&gt;

&lt;P&gt;how to get column with value C as its unique value in col2&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2019 20:07:04 GMT</pubDate>
    <dc:creator>vb1612</dc:creator>
    <dc:date>2019-08-21T20:07:04Z</dc:date>
    <item>
      <title>Different values in column between two rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Different-values-in-column-between-two-rows/m-p/458631#M191283</link>
      <description>&lt;P&gt;Hi , I am having data like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;               Col1                Col2(created from values())
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;row 1         X                       A B C&lt;BR /&gt;
row 2         Y                       A B&lt;/P&gt;

&lt;P&gt;how to get column with value C as its unique value in col2&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 20:07:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Different-values-in-column-between-two-rows/m-p/458631#M191283</guid>
      <dc:creator>vb1612</dc:creator>
      <dc:date>2019-08-21T20:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Different values in column between two rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Different-values-in-column-between-two-rows/m-p/458632#M191284</link>
      <description>&lt;P&gt;to clarify&lt;/P&gt;

&lt;P&gt;col1 having X&lt;BR /&gt;
Col2 having A B C (multivalues)&lt;/P&gt;

&lt;P&gt;second row col2 A B&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 20:33:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Different-values-in-column-between-two-rows/m-p/458632#M191284</guid>
      <dc:creator>vb1612</dc:creator>
      <dc:date>2019-08-21T20:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Different values in column between two rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Different-values-in-column-between-two-rows/m-p/458633#M191285</link>
      <description>&lt;P&gt;Not very clear. Do you want seperate row for "C" ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your base search&amp;gt;| makemv delim=" " col2|mvexpand col2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Aug 2019 00:53:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Different-values-in-column-between-two-rows/m-p/458633#M191285</guid>
      <dc:creator>nareshinsvu</dc:creator>
      <dc:date>2019-08-22T00:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Different values in column between two rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Different-values-in-column-between-two-rows/m-p/458634#M191286</link>
      <description>&lt;P&gt;as A B already there in one row in single column , so want difference between two rows which is C &lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 02:38:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Different-values-in-column-between-two-rows/m-p/458634#M191286</guid>
      <dc:creator>vb1612</dc:creator>
      <dc:date>2019-08-22T02:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Different values in column between two rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Different-values-in-column-between-two-rows/m-p/458635#M191287</link>
      <description>&lt;P&gt;Not sure if this helps. You can use the logic according to your requirements. Hope it helps&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your base search&amp;gt;| makemv delim=" " col2|mvexpand col2 | stats count(col2) as count by col2 | eval new_column=if((count=1),col2,"") | table new_column
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Aug 2019 02:51:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Different-values-in-column-between-two-rows/m-p/458635#M191287</guid>
      <dc:creator>nareshinsvu</dc:creator>
      <dc:date>2019-08-22T02:51:07Z</dc:date>
    </item>
  </channel>
</rss>

