All Apps and Add-ons

Palo Alto App - Traffic Dashboard

rgaleone1
Path Finder

I have a question about a query within the Palo Alto App. As shipped the app displays total traffic grouped by egress and ingress interfaces. I just want to see the total egress traffic and the total ingress traffic.

How would I modify the query below (from Palo Alto App) in order to show just total traffic out of the PAN?

"search">|tstats sum(bytes) As sb FROM pan_traffic where log_subtype=end $action$ $src_ip$ $dst_ip$ $dst_port$ $src_user$ $app$ groupby egress_interface | eval sumBytes = sb/(1024*1024) | stats values(sumBytes) AS MegaBytes engress_interface

0 Karma
1 Solution

btorresgil
Builder

Hi rgaleone1,

To get the total bytes processed by the firewall, you can use a search like the one you mentioned, but without the 'groupby' part since you don't want to group by the egress interfaces. For example, this search will give you the total bytes across all interfaces:

|tstats sum(bytes) As sumOfBytes FROM pan_traffic where log_subtype=end

If you want it in megabytes, you can use this search:

|tstats sum(bytes) As sumOfBytes FROM pan_traffic where log_subtype=end | eval MegaBytes = sumOfBytes/(1024*1024)

Version 3.4 of the Splunk for Palo Alto Networks app supports NetFlow records which is also useful for this kind of statistic.

View solution in original post

0 Karma

btorresgil
Builder

Hi rgaleone1,

To get the total bytes processed by the firewall, you can use a search like the one you mentioned, but without the 'groupby' part since you don't want to group by the egress interfaces. For example, this search will give you the total bytes across all interfaces:

|tstats sum(bytes) As sumOfBytes FROM pan_traffic where log_subtype=end

If you want it in megabytes, you can use this search:

|tstats sum(bytes) As sumOfBytes FROM pan_traffic where log_subtype=end | eval MegaBytes = sumOfBytes/(1024*1024)

Version 3.4 of the Splunk for Palo Alto Networks app supports NetFlow records which is also useful for this kind of statistic.

0 Karma
Get Updates on the Splunk Community!

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...