<?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: Splunk whitelisting ports as csv in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-whitelisting-ports-as-csv/m-p/354341#M64801</link>
    <description>&lt;P&gt;sourcetype=syslog dst_port=*| lookup ports.csv port as dst_port OUTPUTNEW port as isWhitelist | where isnull(isWhitelist) &lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:17:28 GMT</pubDate>
    <dc:creator>starcher</dc:creator>
    <dc:date>2020-09-29T13:17:28Z</dc:date>
    <item>
      <title>Splunk whitelisting ports as csv</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-whitelisting-ports-as-csv/m-p/354340#M64800</link>
      <description>&lt;P&gt;Hey!&lt;/P&gt;

&lt;P&gt;I'm trying to make a search that takes all values from my whitelist and compares them to all destination ports.  The goal of this search is to see, if a port that is not whitelisted is used. To accomplish this i want to evaluate the distinct count of all destination ports and compare this value to the distinct count of the destination ports that match the whitelist.&lt;/P&gt;

&lt;P&gt;My search is as follows:&lt;/P&gt;

&lt;P&gt;| inputlookup ports.csv | eval port=Ports | append [search sourcetype=syslog dst_port!="" | eval destination=dst_port]|stats distinct_count(destination) as unique_ports| stats distinct_count(destination) as matches|where destintation = port|table unique_ports, matches&lt;/P&gt;

&lt;P&gt;When i try to run the search no data is found...&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:13:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-whitelisting-ports-as-csv/m-p/354340#M64800</guid>
      <dc:creator>soesia12</dc:creator>
      <dc:date>2020-09-29T13:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk whitelisting ports as csv</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-whitelisting-ports-as-csv/m-p/354341#M64801</link>
      <description>&lt;P&gt;sourcetype=syslog dst_port=*| lookup ports.csv port as dst_port OUTPUTNEW port as isWhitelist | where isnull(isWhitelist) &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:17:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-whitelisting-ports-as-csv/m-p/354341#M64801</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2020-09-29T13:17:28Z</dc:date>
    </item>
  </channel>
</rss>

