<?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: Using Lookup files and identifying the changes in each file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-files-and-identifying-the-changes-in-each-file/m-p/374085#M109954</link>
    <description>&lt;P&gt;Sorry mate , I had the dates in two different formats and hence the whole differences where thrown up . It did get the work moving, but is there a way we can identify the column which had the change ?&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2018 04:05:53 GMT</pubDate>
    <dc:creator>madakkas</dc:creator>
    <dc:date>2018-02-14T04:05:53Z</dc:date>
    <item>
      <title>Using Lookup files and identifying the changes in each file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-files-and-identifying-the-changes-in-each-file/m-p/374081#M109950</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have a question that I am trying to solve … &lt;/P&gt;

&lt;P&gt;I have two files which I can upload to be used as inputlookup.csv&lt;/P&gt;

&lt;P&gt;Sample as below &lt;BR /&gt;
tab1.csv&lt;BR /&gt;
Date    Col1    Col2    Col3    Col4    Col5&lt;BR /&gt;
1-Jan-18    Y   N   N   N   N&lt;BR /&gt;
2-Jan-18    Y   N   N   N   N&lt;BR /&gt;
3-Jan-18    Y   Y   Y   Y   Y&lt;BR /&gt;
4-Jan-18    Y   Y   Y   Y   Y&lt;BR /&gt;
5-Jan-18    Y   Y   Y   Y   Y&lt;BR /&gt;
6-Jan-18    Y   Y   Y   Y   Y&lt;BR /&gt;
7-Jan-18    Y   N   N   N   Y&lt;BR /&gt;
8-Jan-18    Y   N   N   N   Y&lt;BR /&gt;
9-Jan-18    Y   Y   N   Y   Y&lt;BR /&gt;
10-Jan-18   Y   Y   Y   Y   Y&lt;/P&gt;

&lt;P&gt;tab2.csv&lt;BR /&gt;&lt;BR /&gt;
Date    Col1    Col2    Col3    Col4    Col5&lt;BR /&gt;
1-Jan-18    Y   N   N   N   N&lt;BR /&gt;
2-Jan-18    Y   N   N   N   N&lt;BR /&gt;
3-Jan-18    Y   Y   Y   Y   Y&lt;BR /&gt;
4-Jan-18    N   Y   Y   Y   Y&lt;BR /&gt;
5-Jan-18    Y   Y   Y   Y   Y&lt;BR /&gt;
6-Jan-18    Y   Y   Y   Y   Y&lt;BR /&gt;
7-Jan-18    Y   N   N   N   Y&lt;BR /&gt;
8-Jan-18    Y   N   N   N   Y&lt;BR /&gt;
9-Jan-18    Y   Y   Y   Y   Y&lt;BR /&gt;
10-Jan-18   Y   Y   Y   Y   Y&lt;/P&gt;

&lt;P&gt;I am looking for a way to join these two tables and sort the areas where there is a change as below &lt;/P&gt;

&lt;P&gt;Date    Col1    Col2    Col3    Col4    Col5    Output&lt;BR /&gt;
4-Jan-18    N&lt;BR /&gt;&lt;BR /&gt;
9-Jan-18            Y           &lt;/P&gt;

&lt;P&gt;|inputlookup tab1.csv&lt;BR /&gt;
|lookup tab2.csv Date Col1 Col2.&lt;/P&gt;

&lt;P&gt;this gives me a complete set of results along with the mismatched columns. How can i remove all except the mismatched columns. &lt;/P&gt;

&lt;P&gt;thank You in advance. &lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 04:05:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-files-and-identifying-the-changes-in-each-file/m-p/374081#M109950</guid>
      <dc:creator>madakkas</dc:creator>
      <dc:date>2018-02-13T04:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using Lookup files and identifying the changes in each file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-files-and-identifying-the-changes-in-each-file/m-p/374082#M109951</link>
      <description>&lt;P&gt;try this out as a base maybe we can work form there:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | inputlookup tab2.csv
    | search NOT [| inputlookup tab1.csv ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this will give you the entire line in which there was a change&lt;BR /&gt;
hope it helps a little &lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 15:55:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-files-and-identifying-the-changes-in-each-file/m-p/374082#M109951</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-02-13T15:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using Lookup files and identifying the changes in each file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-files-and-identifying-the-changes-in-each-file/m-p/374083#M109952</link>
      <description>&lt;P&gt;it just gave me the entire tab2.csv, not the differences in them . &lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 02:33:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-files-and-identifying-the-changes-in-each-file/m-p/374083#M109952</guid>
      <dc:creator>madakkas</dc:creator>
      <dc:date>2018-02-14T02:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using Lookup files and identifying the changes in each file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-files-and-identifying-the-changes-in-each-file/m-p/374084#M109953</link>
      <description>&lt;P&gt;@madakkas,&lt;BR /&gt;
copied your sample to the letter. here is a screenshot.&lt;BR /&gt;
can you double check&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4375i4472C8AC200597BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 03:54:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-files-and-identifying-the-changes-in-each-file/m-p/374084#M109953</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-02-14T03:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using Lookup files and identifying the changes in each file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-files-and-identifying-the-changes-in-each-file/m-p/374085#M109954</link>
      <description>&lt;P&gt;Sorry mate , I had the dates in two different formats and hence the whole differences where thrown up . It did get the work moving, but is there a way we can identify the column which had the change ?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 04:05:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-files-and-identifying-the-changes-in-each-file/m-p/374085#M109954</guid>
      <dc:creator>madakkas</dc:creator>
      <dc:date>2018-02-14T04:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using Lookup files and identifying the changes in each file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-files-and-identifying-the-changes-in-each-file/m-p/374086#M109955</link>
      <description>&lt;P&gt;i am puzzled by it as well. trying to come up with a solution and will post it here once i figure it out&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 11:10:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-files-and-identifying-the-changes-in-each-file/m-p/374086#M109955</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-02-14T11:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using Lookup files and identifying the changes in each file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-files-and-identifying-the-changes-in-each-file/m-p/374087#M109956</link>
      <description>&lt;P&gt;I did something as below , though it is a bit complicated. Will as well wait for your advise if you have any simpler thoughts. &lt;/P&gt;

&lt;P&gt;Kind of created a macro as below &lt;/P&gt;

&lt;P&gt;|inputlookup tab1.csv| append [inputlookup tab2.csv]&lt;BR /&gt;
|table Date $col_num$&lt;BR /&gt;
|chart count over Date by $col_num$  |eval col_name = "$col_num$" |where N = 1 or Y = 1&lt;BR /&gt;
|table Date col_name&lt;/P&gt;

&lt;P&gt;and then will have to do an append to call the macro multiple times with the number of columns available. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:03:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Lookup-files-and-identifying-the-changes-in-each-file/m-p/374087#M109956</guid>
      <dc:creator>madakkas</dc:creator>
      <dc:date>2020-09-29T18:03:31Z</dc:date>
    </item>
  </channel>
</rss>

