<?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 get uncommon results from  two files in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/get-uncommon-results-from-two-files/m-p/192046#M187213</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;I am joining two files based on the common field, now i want results which are not common, &lt;BR /&gt;
how do in get uncommon results from two files.&lt;/P&gt;

&lt;P&gt;please find the query used below and help me to get the results that are not common among files:&lt;BR /&gt;
source="geo.csv" | table city,latitude,longitude&lt;BR /&gt;
|eval CITY=upper(city) | table CITY,latitude,longitude | rename CITY as Localidade |   join    Localidade [search source="Areas para CNL .csv"] | table Localidade,AT,latitude,longitude&lt;/P&gt;

&lt;P&gt;I need only localidade which is not common between  "geo.csv" and  "Areas para CNL .csv" &lt;/P&gt;

&lt;P&gt;Thanking you&lt;/P&gt;</description>
    <pubDate>Tue, 18 Mar 2014 10:23:31 GMT</pubDate>
    <dc:creator>kavyatim</dc:creator>
    <dc:date>2014-03-18T10:23:31Z</dc:date>
    <item>
      <title>get uncommon results from  two files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/get-uncommon-results-from-two-files/m-p/192046#M187213</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;I am joining two files based on the common field, now i want results which are not common, &lt;BR /&gt;
how do in get uncommon results from two files.&lt;/P&gt;

&lt;P&gt;please find the query used below and help me to get the results that are not common among files:&lt;BR /&gt;
source="geo.csv" | table city,latitude,longitude&lt;BR /&gt;
|eval CITY=upper(city) | table CITY,latitude,longitude | rename CITY as Localidade |   join    Localidade [search source="Areas para CNL .csv"] | table Localidade,AT,latitude,longitude&lt;/P&gt;

&lt;P&gt;I need only localidade which is not common between  "geo.csv" and  "Areas para CNL .csv" &lt;/P&gt;

&lt;P&gt;Thanking you&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2014 10:23:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/get-uncommon-results-from-two-files/m-p/192046#M187213</guid>
      <dc:creator>kavyatim</dc:creator>
      <dc:date>2014-03-18T10:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: get uncommon results from  two files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/get-uncommon-results-from-two-files/m-p/192047#M187214</link>
      <description>&lt;P&gt;Hi kavyatim,&lt;/P&gt;

&lt;P&gt;try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="geo.csv" OR source="Areas para CNL .csv" | eval CITY=upper(city) | where CITY!=Localidade OR Localidade!=CITY | rename CITY as Localidade | table Localidade,AT,latitude,longitude
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You don't need a &lt;CODE&gt;join&lt;/CODE&gt; because you use two different fields from two different sources. Maybe you need to tune the &lt;CODE&gt;where&lt;/CODE&gt; statement, I included both compares maybe you need just one. This is untested since I don't have your data.&lt;/P&gt;

&lt;P&gt;hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2014 11:59:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/get-uncommon-results-from-two-files/m-p/192047#M187214</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2014-03-18T11:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: get uncommon results from  two files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/get-uncommon-results-from-two-files/m-p/192048#M187215</link>
      <description>&lt;P&gt;Try this (assuming you just need list of Localidade which are not common between two sources)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|set diff [search source="geo.csv" |eval Localidade=upper(city) | table Localidade] [search source="Areas para CNL .csv"] | table Localidade]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Mar 2014 14:21:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/get-uncommon-results-from-two-files/m-p/192048#M187215</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-03-18T14:21:30Z</dc:date>
    </item>
  </channel>
</rss>

