<?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 generate a search to compare the value of a field with a CSV table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-compare-the-value-of-a-field-with-a/m-p/352821#M104430</link>
    <description>&lt;P&gt;I edited my answer, please try the new version.  If dst_port isn't the field name in your index, then change it to the field name you have for the ports in your indexed data.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Mar 2017 11:03:47 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2017-03-14T11:03:47Z</dc:date>
    <item>
      <title>How to generate a search to compare the value of a field with a CSV table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-compare-the-value-of-a-field-with-a/m-p/352818#M104427</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;

&lt;P&gt;I'm currently trying to compare the value of a field with a csv table.&lt;/P&gt;

&lt;P&gt;I want to compare the destination port (dst_port) with the values of pwhitelist.csv and display the ports that are not included in the csv data.&lt;/P&gt;

&lt;P&gt;For example: the csv file consists of the ports 80, 8080, 443 and 8000 want to display all dst_ports that are not 80, 8080, 443 or 8000. &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 17:28:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-compare-the-value-of-a-field-with-a/m-p/352818#M104427</guid>
      <dc:creator>soesia12</dc:creator>
      <dc:date>2017-03-13T17:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search to compare the value of a field with a CSV table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-compare-the-value-of-a-field-with-a/m-p/352819#M104428</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;yourBaseSearch NOT [|inputlookup pwhitelist.csv | fields Ports | rename Ports AS dst_port | format]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Mar 2017 17:47:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-compare-the-value-of-a-field-with-a/m-p/352819#M104428</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-03-13T17:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search to compare the value of a field with a CSV table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-compare-the-value-of-a-field-with-a/m-p/352820#M104429</link>
      <description>&lt;P&gt;Hey!&lt;/P&gt;

&lt;P&gt;Doesn't work. It just lists all ports.&lt;/P&gt;

&lt;P&gt;In the file there are just a few ports. At the moments it's just for testing.&lt;BR /&gt;
pwhitelist.csv:&lt;/P&gt;

&lt;P&gt;In the file is only one column with the header "Ports".&lt;BR /&gt;
The values 80,443,8000,8080 are in that column.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 06:58:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-compare-the-value-of-a-field-with-a/m-p/352820#M104429</guid>
      <dc:creator>soesia12</dc:creator>
      <dc:date>2017-03-14T06:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search to compare the value of a field with a CSV table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-compare-the-value-of-a-field-with-a/m-p/352821#M104430</link>
      <description>&lt;P&gt;I edited my answer, please try the new version.  If dst_port isn't the field name in your index, then change it to the field name you have for the ports in your indexed data.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 11:03:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-compare-the-value-of-a-field-with-a/m-p/352821#M104430</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-03-14T11:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a search to compare the value of a field with a CSV table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-compare-the-value-of-a-field-with-a/m-p/352822#M104431</link>
      <description>&lt;P&gt;thanks so much ! it worked&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 12:44:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-generate-a-search-to-compare-the-value-of-a-field-with-a/m-p/352822#M104431</guid>
      <dc:creator>soesia12</dc:creator>
      <dc:date>2017-03-14T12:44:15Z</dc:date>
    </item>
  </channel>
</rss>

