<?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 match the values from different rows on a table and compare result. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-values-from-different-rows-on-a-table-and/m-p/438630#M124850</link>
    <description>&lt;P&gt;you can create 2 lookup tables, one for each table. Then, you can merge them and compare for count&amp;gt;1&lt;/P&gt;

&lt;P&gt;|inputlookup table1.csv | table MSIDN | outputlookup append=t table2.csv | stats count by MSIDN |where count &amp;gt; 1&lt;/P&gt;

&lt;P&gt;So, if you have values more than 1, that means, that MSIDN is appearing in both the tables.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Feb 2019 14:37:29 GMT</pubDate>
    <dc:creator>lakshman239</dc:creator>
    <dc:date>2019-02-01T14:37:29Z</dc:date>
    <item>
      <title>How to match the values from different rows on a table and compare result.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-values-from-different-rows-on-a-table-and/m-p/438625#M124845</link>
      <description>&lt;P&gt;I have 2 tables contains random msisdn which can be repeated in one another as follows: &lt;BR /&gt;
    Table1 | Table2&lt;BR /&gt;
msisdn1 | msisdn3&lt;BR /&gt;
msisdn2 | msisdn1&lt;BR /&gt;
msisdn3 | msisdn8&lt;BR /&gt;
msisdn5 | msisdn6&lt;BR /&gt;
                 | msisdn2&lt;BR /&gt;
                 | msisdn 4&lt;/P&gt;

&lt;P&gt;and so on.&lt;BR /&gt;
Also row may be different as well as table count/length. &lt;/P&gt;

&lt;P&gt;So need to check the same msisdn value in both table and save the result in another field.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 14:38:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-values-from-different-rows-on-a-table-and/m-p/438625#M124845</guid>
      <dc:creator>mandarpim</dc:creator>
      <dc:date>2019-01-31T14:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to match the values from different rows on a table and compare result.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-values-from-different-rows-on-a-table-and/m-p/438626#M124846</link>
      <description>&lt;P&gt;@mandarpim in the above example, is the desired result will be all the items as the arent "equal" on their perspective table location OR only msisdn 2 4 and 5?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 19:31:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-values-from-different-rows-on-a-table-and/m-p/438626#M124846</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2019-01-31T19:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to match the values from different rows on a table and compare result.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-values-from-different-rows-on-a-table-and/m-p/438627#M124847</link>
      <description>&lt;P&gt;@mandarpim: Are you looking something like this:&lt;BR /&gt;
    | makeresults | eval msd="12"&lt;BR /&gt;
    | append [| makeresults | eval msd="13"]&lt;BR /&gt;
    | append [| makeresults | eval msd="14"]&lt;BR /&gt;
    | append [| makeresults | eval msd="12"]&lt;BR /&gt;
    | fields - _time&lt;BR /&gt;
    |join max=0 msd [ | makeresults | eval msd="10"&lt;BR /&gt;
    | append [| makeresults | eval msd="14"]&lt;BR /&gt;
    | append [| makeresults | eval msd="14"]&lt;BR /&gt;
    | append [| makeresults | eval msd="14"]]&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 06:48:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-values-from-different-rows-on-a-table-and/m-p/438627#M124847</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2019-02-01T06:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to match the values from different rows on a table and compare result.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-values-from-different-rows-on-a-table-and/m-p/438628#M124848</link>
      <description>&lt;P&gt;The final result should be in separate table with a flag found or not-found.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 12:36:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-values-from-different-rows-on-a-table-and/m-p/438628#M124848</guid>
      <dc:creator>mandarpim</dc:creator>
      <dc:date>2019-02-01T12:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to match the values from different rows on a table and compare result.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-values-from-different-rows-on-a-table-and/m-p/438629#M124849</link>
      <description>&lt;P&gt;@mandarpim &lt;/P&gt;

&lt;P&gt;Are you looking for this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YOUR_TABLE1_SEARCH  [ YOUR_TABLE2_SEARCH  | return Table1 value ] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Sample Search&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval _raw="
Table1  value
msisdn1 10
msisdn2 40
msisdn3 30
msisdn5 40
" | multikv | search [| makeresults | eval _raw="
Table1  value
msisdn2 40
msisdn4 80
" | multikv | return Table1 value ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Feb 2019 12:58:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-values-from-different-rows-on-a-table-and/m-p/438629#M124849</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-02-01T12:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to match the values from different rows on a table and compare result.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-values-from-different-rows-on-a-table-and/m-p/438630#M124850</link>
      <description>&lt;P&gt;you can create 2 lookup tables, one for each table. Then, you can merge them and compare for count&amp;gt;1&lt;/P&gt;

&lt;P&gt;|inputlookup table1.csv | table MSIDN | outputlookup append=t table2.csv | stats count by MSIDN |where count &amp;gt; 1&lt;/P&gt;

&lt;P&gt;So, if you have values more than 1, that means, that MSIDN is appearing in both the tables.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 14:37:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-values-from-different-rows-on-a-table-and/m-p/438630#M124850</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-02-01T14:37:29Z</dc:date>
    </item>
  </channel>
</rss>

