<?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 remove duplicate values from one index in another index? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-duplicate-values-from-one-index-in-another-index/m-p/319119#M59623</link>
    <description>&lt;P&gt;You probably want something like ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=Base456 WiFiMAC="*" earliest=0
 | eval LPR = strptime(LastPolicyRequest, "%m/%d/%Y %I:%M:%S %p") 
 | where LPR &amp;gt;= relative_time(now(),"-7d@h")
 | table "WiFiMAC"
 | dedup WiFiMAC 

 | rename COMMENT as "now we use the lookup as a lookup, and compare the results to what we want to drop" 
 | lookup BASE123.csv  u_wifi_mac_address as WiFiMAC OUTPUT discovery_source
 | where isnull(discovery_source) OR discovery_source!="AWM" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 10 Apr 2018 18:37:40 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2018-04-10T18:37:40Z</dc:date>
    <item>
      <title>How to remove duplicate values from one index in another index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-duplicate-values-from-one-index-in-another-index/m-p/319118#M59622</link>
      <description>&lt;P&gt;I have an inputlookup that provides me a list of mac addresses, I want to remove those mac addresses from another index that contains some of the same lists in the inputlookup.&lt;/P&gt;

&lt;P&gt;Here is my index where I do not want the mac addresses of the inputlookup to show up in.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=Base456 WiFiMAC="*" earliest=0
| eval LPR = strptime(LastPolicyRequest, "%m/%d/%Y %I:%M:%S %p") 
| where LPR &amp;gt;= relative_time(now(),"-7d@h")
| table "WiFiMAC"
| dedup WiFiMAC 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is my inputlookup I am looking to subtract from the index&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup BASE123.csv 
| rename u_wifi_mac_address as Mac_Address 
| search discovery_source="AWM" 
| table Mac_Address
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I had trouble using join due to it being an inputlookup.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 16:18:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-duplicate-values-from-one-index-in-another-index/m-p/319118#M59622</guid>
      <dc:creator>JoshuaJohn</dc:creator>
      <dc:date>2018-04-10T16:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove duplicate values from one index in another index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-duplicate-values-from-one-index-in-another-index/m-p/319119#M59623</link>
      <description>&lt;P&gt;You probably want something like ...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=Base456 WiFiMAC="*" earliest=0
 | eval LPR = strptime(LastPolicyRequest, "%m/%d/%Y %I:%M:%S %p") 
 | where LPR &amp;gt;= relative_time(now(),"-7d@h")
 | table "WiFiMAC"
 | dedup WiFiMAC 

 | rename COMMENT as "now we use the lookup as a lookup, and compare the results to what we want to drop" 
 | lookup BASE123.csv  u_wifi_mac_address as WiFiMAC OUTPUT discovery_source
 | where isnull(discovery_source) OR discovery_source!="AWM" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Apr 2018 18:37:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-duplicate-values-from-one-index-in-another-index/m-p/319119#M59623</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-04-10T18:37:40Z</dc:date>
    </item>
  </channel>
</rss>

