<?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 How to import Multiple CSVs as exclude and include lists? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-import-Multiple-CSVs-as-exclude-and-include-lists/m-p/211941#M41715</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm trying to do a search for requests made to a list of malicious domains defined in a csv file, but excluding a list of source IPS. So far this is what I have, but I get no results:&lt;/P&gt;

&lt;P&gt;sourcetype=bro OR sourcetype=Proxy [inputlookup Malware_Domains.csv| fields Malware_Domains] NOT [inputlookup Exclude_IP.csv| fields Exclude_IP]&lt;/P&gt;

&lt;P&gt;My desired results will be all the IPs not in the exclude list, that are going to domains in the malware domains list, however currently I get 0/0 where as if I do my search with a Malwaredomain1 OR malware domain2 src_ip=!x.x.x.x AND src_ip=!x.x.x.x.... I get multiple results. I'm simply just trying to clean up this search and learn how to import CSVs&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 10:31:16 GMT</pubDate>
    <dc:creator>karatyman</dc:creator>
    <dc:date>2020-09-29T10:31:16Z</dc:date>
    <item>
      <title>How to import Multiple CSVs as exclude and include lists?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-import-Multiple-CSVs-as-exclude-and-include-lists/m-p/211941#M41715</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm trying to do a search for requests made to a list of malicious domains defined in a csv file, but excluding a list of source IPS. So far this is what I have, but I get no results:&lt;/P&gt;

&lt;P&gt;sourcetype=bro OR sourcetype=Proxy [inputlookup Malware_Domains.csv| fields Malware_Domains] NOT [inputlookup Exclude_IP.csv| fields Exclude_IP]&lt;/P&gt;

&lt;P&gt;My desired results will be all the IPs not in the exclude list, that are going to domains in the malware domains list, however currently I get 0/0 where as if I do my search with a Malwaredomain1 OR malware domain2 src_ip=!x.x.x.x AND src_ip=!x.x.x.x.... I get multiple results. I'm simply just trying to clean up this search and learn how to import CSVs&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:31:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-import-Multiple-CSVs-as-exclude-and-include-lists/m-p/211941#M41715</guid>
      <dc:creator>karatyman</dc:creator>
      <dc:date>2020-09-29T10:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to import Multiple CSVs as exclude and include lists?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-import-Multiple-CSVs-as-exclude-and-include-lists/m-p/211942#M41716</link>
      <description>&lt;P&gt;Where are the lookup files located? Are they in: Splunk\etc\system\lookups?&lt;/P&gt;

&lt;P&gt;What is also important are the field names in the csv files. I see that you are calling the fields: Malware_Domains and Exclude_IP. With your current search you would have to have fields that match that name in the proxy and bro sourcetypes. You could add before | fields: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rename Exclude_IP AS dest_ip&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;dest_ip would be whatever the IP field in your logs is. Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:37:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-import-Multiple-CSVs-as-exclude-and-include-lists/m-p/211942#M41716</guid>
      <dc:creator>jpolcari</dc:creator>
      <dc:date>2020-09-29T10:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to import Multiple CSVs as exclude and include lists?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-import-Multiple-CSVs-as-exclude-and-include-lists/m-p/211943#M41717</link>
      <description>&lt;P&gt;@karatyman Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=bro OR sourcetype=Proxy [inputlookup Malware_Domains.csv| eval search="*".Malware_Domains."*" | fields search ] NOT [inputlookup Exclude_IP.csv| rename Exclude_IP as src_ip | fields src_ip]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Aug 2016 22:08:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-import-Multiple-CSVs-as-exclude-and-include-lists/m-p/211943#M41717</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-12T22:08:53Z</dc:date>
    </item>
  </channel>
</rss>

