<?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 Return values in CSV lookup not in index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Return-values-in-CSV-lookup-not-in-index/m-p/493504#M137647</link>
    <description>&lt;P&gt;My CSV has 98 rows and I want the search to return the rows from that csv if they are not in my index=gcp*&lt;/P&gt;

&lt;P&gt;what i have here is the opposite, it matches if its in index=gcp* -- i need to flip it basically.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=gcp*
| rename data.jsonPayload.rule_details.reference as FW
| search FW = "network:prod*"
| rex field=FW "network:prod-a/firewall:(?&amp;lt;fw&amp;gt;.*)"
| rex field=FW "network:prod-b/firewall:(?&amp;lt;fw&amp;gt;.*)"
| rex field=FW "network:prod-c/firewall:(?&amp;lt;fw&amp;gt;.*)"
| rex field=FW "network:prod-d/firewall:(?&amp;lt;fw&amp;gt;.*)"
| rex field=FW "network:prod-e/firewall:(?&amp;lt;fw&amp;gt;.*)"
| lookup firewall-exception-prod-num.csv firewall_rule as fw OUTPUT firewall_rule as fw
| dedup fw
| table fw
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 11 May 2020 17:06:16 GMT</pubDate>
    <dc:creator>katmagee</dc:creator>
    <dc:date>2020-05-11T17:06:16Z</dc:date>
    <item>
      <title>Return values in CSV lookup not in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Return-values-in-CSV-lookup-not-in-index/m-p/493504#M137647</link>
      <description>&lt;P&gt;My CSV has 98 rows and I want the search to return the rows from that csv if they are not in my index=gcp*&lt;/P&gt;

&lt;P&gt;what i have here is the opposite, it matches if its in index=gcp* -- i need to flip it basically.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=gcp*
| rename data.jsonPayload.rule_details.reference as FW
| search FW = "network:prod*"
| rex field=FW "network:prod-a/firewall:(?&amp;lt;fw&amp;gt;.*)"
| rex field=FW "network:prod-b/firewall:(?&amp;lt;fw&amp;gt;.*)"
| rex field=FW "network:prod-c/firewall:(?&amp;lt;fw&amp;gt;.*)"
| rex field=FW "network:prod-d/firewall:(?&amp;lt;fw&amp;gt;.*)"
| rex field=FW "network:prod-e/firewall:(?&amp;lt;fw&amp;gt;.*)"
| lookup firewall-exception-prod-num.csv firewall_rule as fw OUTPUT firewall_rule as fw
| dedup fw
| table fw
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 May 2020 17:06:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Return-values-in-CSV-lookup-not-in-index/m-p/493504#M137647</guid>
      <dc:creator>katmagee</dc:creator>
      <dc:date>2020-05-11T17:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Return values in CSV lookup not in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Return-values-in-CSV-lookup-not-in-index/m-p/493505#M137648</link>
      <description>&lt;P&gt;use &lt;CODE&gt;|inputlookup your_csv&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 19:28:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Return-values-in-CSV-lookup-not-in-index/m-p/493505#M137648</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-11T19:28:47Z</dc:date>
    </item>
  </channel>
</rss>

