<?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 Using Splunk to Find Unused Firewall Policies in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-Splunk-to-Find-Unused-Firewall-Policies/m-p/32802#M6889</link>
    <description>&lt;P&gt;We run a report every week that counts how many times a firewall policy was used.  (A firewall policy is represented by a number)&lt;/P&gt;

&lt;P&gt;What I would like to do is compare a master list of all the firewall policies that exist against policies that never show up in the logs.  If a policy doesn't show up in the logs, then it obviously isn't being used.&lt;/P&gt;

&lt;P&gt;Would I use a lookup for this?  Would I set up the master list of policies somewhere, then somehow search the logs to see which ones are NOT in the logs?  How would I go about achieving something like this?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 14 Feb 2013 18:37:44 GMT</pubDate>
    <dc:creator>aferone</dc:creator>
    <dc:date>2013-02-14T18:37:44Z</dc:date>
    <item>
      <title>Using Splunk to Find Unused Firewall Policies</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Splunk-to-Find-Unused-Firewall-Policies/m-p/32802#M6889</link>
      <description>&lt;P&gt;We run a report every week that counts how many times a firewall policy was used.  (A firewall policy is represented by a number)&lt;/P&gt;

&lt;P&gt;What I would like to do is compare a master list of all the firewall policies that exist against policies that never show up in the logs.  If a policy doesn't show up in the logs, then it obviously isn't being used.&lt;/P&gt;

&lt;P&gt;Would I use a lookup for this?  Would I set up the master list of policies somewhere, then somehow search the logs to see which ones are NOT in the logs?  How would I go about achieving something like this?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2013 18:37:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Splunk-to-Find-Unused-Firewall-Policies/m-p/32802#M6889</guid>
      <dc:creator>aferone</dc:creator>
      <dc:date>2013-02-14T18:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using Splunk to Find Unused Firewall Policies</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Splunk-to-Find-Unused-Firewall-Policies/m-p/32803#M6890</link>
      <description>&lt;P&gt;You could store the entire list of firewall policies in a CSV file for example. Say one column for the policy_id, one for a human-readable name. You'd start off your query with inputlookup, then filter that against a subsearch that lists every firewall policy that was used. In pseudosplunk it might look something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup firewall_policies.csv | search NOT [subsearch that returns a list of firewall policies that have been used | return policy_id]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Feb 2013 14:38:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Splunk-to-Find-Unused-Firewall-Policies/m-p/32803#M6890</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-02-15T14:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using Splunk to Find Unused Firewall Policies</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Splunk-to-Find-Unused-Firewall-Policies/m-p/32804#M6891</link>
      <description>&lt;P&gt;Thank you!  Where do I place the csv file of the entire firewall policy list?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 15:44:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Splunk-to-Find-Unused-Firewall-Policies/m-p/32804#M6891</guid>
      <dc:creator>aferone</dc:creator>
      <dc:date>2013-02-19T15:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using Splunk to Find Unused Firewall Policies</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Splunk-to-Find-Unused-Firewall-Policies/m-p/32805#M6892</link>
      <description>&lt;P&gt;The simplest way would be to put it into $SPLUNK_HOME/etc/system/lookups, anything in there can be referenced by file name.&lt;/P&gt;

&lt;P&gt;Alternatively, you can define an input table in props.conf and transforms.conf and reference that name. Consult the doc for that: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Aboutlookupsandfieldactions"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Aboutlookupsandfieldactions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2013 08:57:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Splunk-to-Find-Unused-Firewall-Policies/m-p/32805#M6892</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-02-20T08:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using Splunk to Find Unused Firewall Policies</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Splunk-to-Find-Unused-Firewall-Policies/m-p/32806#M6893</link>
      <description>&lt;P&gt;So I have the lookup uploaded and working, but I can't get the query to run correctly.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2013 15:28:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Splunk-to-Find-Unused-Firewall-Policies/m-p/32806#M6893</guid>
      <dc:creator>aferone</dc:creator>
      <dc:date>2013-02-20T15:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using Splunk to Find Unused Firewall Policies</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Splunk-to-Find-Unused-Firewall-Policies/m-p/32807#M6894</link>
      <description>&lt;P&gt;I tweaked the search from another article and got it to work using this:&lt;/P&gt;

&lt;PRE&gt;
index="summary" policy_id=* 
| inputlookup append=t allfirewallpolicies
| rename PolicyID as policy_id
| stats count by policy_id 
| eval count=count-1 
| sort count
&lt;/PRE&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2013 19:02:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Splunk-to-Find-Unused-Firewall-Policies/m-p/32807#M6894</guid>
      <dc:creator>aferone</dc:creator>
      <dc:date>2013-02-22T19:02:02Z</dc:date>
    </item>
  </channel>
</rss>

