<?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: comparing two csv files having similar fields in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/comparing-two-csv-files-having-similar-fields/m-p/134511#M27626</link>
    <description>&lt;P&gt;Thanks.I tried below command and it also worked.&lt;BR /&gt;
source="booking.csv" [search source="ping.csv" RESULT="Down"|Table Device_NAME ]| Table IP,Engaged&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jul 2014 04:17:53 GMT</pubDate>
    <dc:creator>karthikTIL</dc:creator>
    <dc:date>2014-07-09T04:17:53Z</dc:date>
    <item>
      <title>comparing two csv files having similar fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/comparing-two-csv-files-having-similar-fields/m-p/134509#M27624</link>
      <description>&lt;P&gt;I have two files, ping.csv and booking.csv&lt;BR /&gt;
ping.csv has fields-&amp;gt; Device_NAME,IP,result&lt;BR /&gt;
booking.csv has fields -&amp;gt; Device_NAME,IP,engaged.&lt;BR /&gt;
"Device_NAME" and "IP" fields have same similar values in both files.&lt;/P&gt;

&lt;P&gt;My question is,i need to display "Device_NAME","IP" field and "engaged" field from "booking.csv", if the corresponding device_name and IP fields have result=down in ping.csv.&lt;BR /&gt;
please let me know how do i search.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:01:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/comparing-two-csv-files-having-similar-fields/m-p/134509#M27624</guid>
      <dc:creator>karthikTIL</dc:creator>
      <dc:date>2020-09-28T17:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: comparing two csv files having similar fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/comparing-two-csv-files-having-similar-fields/m-p/134510#M27625</link>
      <description>&lt;P&gt;Looks like you're looking for the join command, assuming both csv files are already indexed by splunk you should be able to that with a query similar to this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="ping.csv" result=down | join Device_NAME,IP [search source="booking.csv"] | table Device_NAME,IP,engaged
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can find more information about the join command here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Join"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Join&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2014 03:18:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/comparing-two-csv-files-having-similar-fields/m-p/134510#M27625</guid>
      <dc:creator>laithmurad</dc:creator>
      <dc:date>2014-07-09T03:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: comparing two csv files having similar fields</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/comparing-two-csv-files-having-similar-fields/m-p/134511#M27626</link>
      <description>&lt;P&gt;Thanks.I tried below command and it also worked.&lt;BR /&gt;
source="booking.csv" [search source="ping.csv" RESULT="Down"|Table Device_NAME ]| Table IP,Engaged&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2014 04:17:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/comparing-two-csv-files-having-similar-fields/m-p/134511#M27626</guid>
      <dc:creator>karthikTIL</dc:creator>
      <dc:date>2014-07-09T04:17:53Z</dc:date>
    </item>
  </channel>
</rss>

