<?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 can I filter a field using a lookup csv file? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-filter-a-field-using-a-lookup-csv-file/m-p/492911#M84256</link>
    <description>&lt;P&gt;Have you tried putting &lt;CODE&gt;dest_port &amp;lt;= 1024&lt;/CODE&gt; in your base search?&lt;/P&gt;</description>
    <pubDate>Wed, 18 Mar 2020 12:43:12 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-03-18T12:43:12Z</dc:date>
    <item>
      <title>How can I filter a field using a lookup csv file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-filter-a-field-using-a-lookup-csv-file/m-p/492910#M84255</link>
      <description>&lt;P&gt;I have a csv file called ports.csv, this contains one column called "port", this contains all of the port numbers 0-1024. I want to use this csv to filter the dest_port field in my Splunk search. &lt;/P&gt;

&lt;P&gt;So essentially I want to only see events that have which have the destination port 0-1024, how can I do this?. Is there an easier way to do this without a CSV lookupfile? o&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 12:11:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-filter-a-field-using-a-lookup-csv-file/m-p/492910#M84255</guid>
      <dc:creator>tomscott21</dc:creator>
      <dc:date>2020-03-18T12:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I filter a field using a lookup csv file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-filter-a-field-using-a-lookup-csv-file/m-p/492911#M84256</link>
      <description>&lt;P&gt;Have you tried putting &lt;CODE&gt;dest_port &amp;lt;= 1024&lt;/CODE&gt; in your base search?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 12:43:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-filter-a-field-using-a-lookup-csv-file/m-p/492911#M84256</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-18T12:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I filter a field using a lookup csv file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-filter-a-field-using-a-lookup-csv-file/m-p/492912#M84257</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="YouShouldAlwaysSpecifyAnIndex" AND sourcetype="AndSourcetypeToo" AND NOT [ |inputlookup MyPortLookupFileHere.csv | table MyPortFieldNameHere | rename MyPortFieldNameHere AS dest_port ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But why not just do as @richgalloway suggested like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="YouShouldAlwaysSpecifyAnIndex" AND sourcetype="AndSourcetypeToo" AND dest_port&amp;lt;=1024
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Mar 2020 14:40:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-filter-a-field-using-a-lookup-csv-file/m-p/492912#M84257</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-18T14:40:52Z</dc:date>
    </item>
  </channel>
</rss>

