Used to estimate logging rate based on log receiver statistics.
This set of scripts will poll the firewall to see how many logs are written per second. It pulls the LPS value from the debug log-receiver statistics
for PaloAlto Firewall or debug log-collector log-collection-stats show incoming-logs
for PaltoAlto Panorama, and is intended to provide an estimate of the number of logs per second that can be forwarded from the device.
Note that the number will be accurate provided all policies are configured to forward logs.
sudo apt update && sudo apt upgrade -y
sudo apt install expect -y
./device_lps.exp <Firewall_IP> <Username> <Device_Type> <Number_of_Samples>
<Device_Type>
can be eitherfw
orcms
.fw
will send the appropriate command for a firewall whilecms
will send the appropriate command for Panorama.- Samples are taken every 10 seconds, so you would enter 360 to get samples over an hour.
This is an updated version of the work of art created by cstancill(at)paloaltonetworks(dot)com
in Panorama Sizing and Design Guide
- Replace
expect
script with a Python (Paramiko) script.