<?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 lookup two files with same column name and display only the difference? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-two-files-with-same-column-name-and-display-only/m-p/618541#M214991</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250708"&gt;@nihvk&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I supose that you want the differences between the full record, in other words considering the three columns.&lt;/P&gt;&lt;P&gt;In this case, you could try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup test1.csv 
| eval lookup="test1.csv"
| append [ 
   | inputlookup test2.csv 
   | eval lookup="test1.csv"
   | fields hashValue, updatedTime, alertName lookup ]
| stats 
   dc(lookup) AS lookup_count
   values(lookup) AS lookup
   BY hashValue updatedTime alertName
| eval status=if(lookup_count=2,"Both lookups",lookup)
| where lookup_count=1
| table lookup hashValue updatedTime alertName&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2022 07:24:02 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-10-27T07:24:02Z</dc:date>
    <item>
      <title>How to lookup two files with same column name and display only the difference?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-two-files-with-same-column-name-and-display-only/m-p/618539#M214990</link>
      <description>&lt;P&gt;This is my first question here!&amp;nbsp;And I just started my journey with Splunk.&lt;/P&gt;&lt;P&gt;I have two files &lt;STRONG&gt;test1.csv&lt;/STRONG&gt; and &lt;STRONG&gt;test2.csv&lt;/STRONG&gt; with same column names in both the files: hashValue, updatedTime, alertName.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I compare both the files w.r.t there column values and output only the difference?&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 07:09:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-two-files-with-same-column-name-and-display-only/m-p/618539#M214990</guid>
      <dc:creator>nihvk</dc:creator>
      <dc:date>2022-10-27T07:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to lookup two files with same column name and display only the difference?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-two-files-with-same-column-name-and-display-only/m-p/618541#M214991</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250708"&gt;@nihvk&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I supose that you want the differences between the full record, in other words considering the three columns.&lt;/P&gt;&lt;P&gt;In this case, you could try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup test1.csv 
| eval lookup="test1.csv"
| append [ 
   | inputlookup test2.csv 
   | eval lookup="test1.csv"
   | fields hashValue, updatedTime, alertName lookup ]
| stats 
   dc(lookup) AS lookup_count
   values(lookup) AS lookup
   BY hashValue updatedTime alertName
| eval status=if(lookup_count=2,"Both lookups",lookup)
| where lookup_count=1
| table lookup hashValue updatedTime alertName&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 07:24:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-two-files-with-same-column-name-and-display-only/m-p/618541#M214991</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-10-27T07:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to lookup two files with same column name and display only the difference?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-two-files-with-same-column-name-and-display-only/m-p/618869#M215079</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;for your prompt answer.&amp;nbsp; This works as I wanted to it to be.&amp;nbsp; Cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 07:14:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-two-files-with-same-column-name-and-display-only/m-p/618869#M215079</guid>
      <dc:creator>nihvk</dc:creator>
      <dc:date>2022-10-31T07:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to lookup two files with same column name and display only the difference?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-two-files-with-same-column-name-and-display-only/m-p/618876#M215084</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/250708"&gt;@nihvk&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Please accept one answer for the other people of Community&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 08:05:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-lookup-two-files-with-same-column-name-and-display-only/m-p/618876#M215084</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-10-31T08:05:08Z</dc:date>
    </item>
  </channel>
</rss>

