<?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: Determine count of devices sending data from a zone in Panorama logging in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/determine-count-of-devices-sending-data-from-a-zone-in-panorama/m-p/1221105#M123341</link>
    <description>&lt;P&gt;Thanks - I've effectively been doing option 1 but there's so much data that each export only contains a small timeframe and the max export record count is limited.&amp;nbsp; &amp;nbsp;Unfortunately the SQL option isn't available, but I'll have a look at the CLI option and see if that helps.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Feb 2025 10:06:09 GMT</pubDate>
    <dc:creator>talford</dc:creator>
    <dc:date>2025-02-20T10:06:09Z</dc:date>
    <item>
      <title>Determine count of devices sending data from a zone in Panorama logging</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/determine-count-of-devices-sending-data-from-a-zone-in-panorama/m-p/1221096#M123337</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I've been asked to provide a count of all IP addresses sending data from a specific zone over a period of weeks from Panorama\NGFW logs, but exporting data from the logs into Excel and removing duplicate IP's is proving impractical due to the amount of data.&lt;/P&gt;
&lt;P&gt;Is there a way to create a log query to do something like a SQL DISTINCT query, or is there some other way to get this information?&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 08:47:15 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/determine-count-of-devices-sending-data-from-a-zone-in-panorama/m-p/1221096#M123337</guid>
      <dc:creator>talford</dc:creator>
      <dc:date>2025-02-20T08:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Determine count of devices sending data from a zone in Panorama logging</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/determine-count-of-devices-sending-data-from-a-zone-in-panorama/m-p/1221103#M123340</link>
      <description>&lt;P&gt;There are multiple way to do it&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp;Using Log Filters in the Web UI (Quick Check)&lt;BR /&gt;If you just need a rough count:&lt;/P&gt;
&lt;P&gt;Go to Monitor → Logs → Traffic.&lt;BR /&gt;Use the Query Builder to filter for:&lt;BR /&gt;Edit&lt;BR /&gt;( zone.src eq &amp;lt;your_zone&amp;gt; )&lt;BR /&gt;Export results to CSV (if necessary), then use a tool like PowerShell or Python to extract unique IPs&lt;BR /&gt;&lt;BR /&gt;2. If you have imported the firewall logs into an SQL database (e.g., &lt;STRONG data-start="67" data-end="110"&gt;Microsoft SQL Server, MySQL, PostgreSQL&lt;/STRONG&gt;), you can use a &lt;STRONG data-start="127" data-end="140"&gt;SQL query&lt;/STRONG&gt; to get the count of unique IPs&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hljs-keyword"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="hljs-built_in"&gt;COUNT&lt;/SPAN&gt;(&lt;SPAN class="hljs-keyword"&gt;DISTINCT&lt;/SPAN&gt; `Source Address`) &lt;SPAN class="hljs-keyword"&gt;AS&lt;/SPAN&gt; Unique_IP_Count &lt;SPAN class="hljs-keyword"&gt;FROM&lt;/SPAN&gt; firewall_logs &lt;BR /&gt;&lt;SPAN class="hljs-keyword"&gt;WHERE&lt;/SPAN&gt; `Zone` &lt;SPAN class="hljs-operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;'&amp;lt;your_zone&amp;gt;'&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;AND&lt;/SPAN&gt; `&lt;SPAN class="hljs-type"&gt;Timestamp&lt;/SPAN&gt;` &lt;SPAN class="hljs-keyword"&gt;BETWEEN&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;'2024-02-01'&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;AND&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;'2024-02-20'&lt;/SPAN&gt;;&lt;BR /&gt;example:&amp;nbsp;&lt;BR /&gt;&lt;SPAN class="hljs-keyword"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="hljs-built_in"&gt;COUNT&lt;/SPAN&gt;(&lt;SPAN class="hljs-keyword"&gt;DISTINCT&lt;/SPAN&gt; [Source Address]) &lt;SPAN class="hljs-keyword"&gt;AS&lt;/SPAN&gt; Unique_IP_Count &lt;SPAN class="hljs-keyword"&gt;FROM&lt;/SPAN&gt; firewall_logs&lt;BR /&gt;&lt;SPAN class="hljs-keyword"&gt;WHERE&lt;/SPAN&gt; [Zone] &lt;SPAN class="hljs-operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;'trust'&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;AND&lt;/SPAN&gt; [&lt;SPAN class="hljs-type"&gt;Timestamp&lt;/SPAN&gt;] &lt;SPAN class="hljs-keyword"&gt;BETWEEN&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;'2024-02-01'&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;AND&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;'2024-02-20';&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="hljs-string"&gt;or last using CLI&amp;nbsp;&lt;SPAN class="hljs-meta prompt_"&gt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN class="language-bash"&gt;show &lt;SPAN class="hljs-built_in"&gt;log&lt;/SPAN&gt; traffic query "( zone.src eq &amp;lt;your_zone&amp;gt; )" direction equal forward &lt;SPAN class="hljs-built_in"&gt;limit&lt;/SPAN&gt; 100000 | match &lt;SPAN class="hljs-built_in"&gt;source&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 09:58:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/determine-count-of-devices-sending-data-from-a-zone-in-panorama/m-p/1221103#M123340</guid>
      <dc:creator>Mudhireddy</dc:creator>
      <dc:date>2025-02-20T09:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Determine count of devices sending data from a zone in Panorama logging</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/determine-count-of-devices-sending-data-from-a-zone-in-panorama/m-p/1221105#M123341</link>
      <description>&lt;P&gt;Thanks - I've effectively been doing option 1 but there's so much data that each export only contains a small timeframe and the max export record count is limited.&amp;nbsp; &amp;nbsp;Unfortunately the SQL option isn't available, but I'll have a look at the CLI option and see if that helps.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 10:06:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/determine-count-of-devices-sending-data-from-a-zone-in-panorama/m-p/1221105#M123341</guid>
      <dc:creator>talford</dc:creator>
      <dc:date>2025-02-20T10:06:09Z</dc:date>
    </item>
  </channel>
</rss>

