Scp/ftp export log command exports only 500 lines of logs
25035
Created On 02/14/20 02:46 AM - Last Modified 11/06/20 00:46 AM
Symptom
"Scp/Ftp export log" command exports only 500 lines of logs when there should be more lines.
Command Example:
> scp export log traffic start-time equal 2020/01/21@12:00:00 end-time equal 2020/01/26@12:00:00 to test@10.1.1.1:traffic_log.csv > ftp export log traffic start-time equal 2020/01/21@12:00:00 end-time equal 2020/01/26@12:00:00 to test:test@10.1.1.1
Environment
- Any PAN-OS.
- Any Palo Alto Firewall.
- Any Panorama.
Cause
PAN-OS device exports only 500 lines of logs if 'max-log-count' option is not specified,
Resolution
Issue the command specifying the desired number of lines using the 'max-log-count' option.
Command Example:
> ftp export log traffic max-log-count 65535 start-time equal 2020/01/21@12:00:00 end-time equal 2020/01/26@12:00:00 to test:test@10.1.1.1Max-log-count : <0-1048576> max number of logs to export
Additional Information
Exporting Firewall Logs into CSV Format times out from WebUI