Palo Alto Networks Knowledgebase: How to Export Logs

How to Export Logs

34668
Created On 05/06/19 22:56 PM - Last Updated 05/07/19 08:24 AM
Reporting and Logging PAN-OS
Resolution

Steps

Note: The following example shows how to export a Traffic log. 
The process is similar for the other types of logs under the Monitor> Logs  section.
User-added image
 

  1. Go to Monitor > Logs > Traffic.

    User-added image

  2. Click Export to CSV icon.

    User-added image

    An Exporting Logs popup window is displayed.

    User-added image

  3. Click Download file.

    User-added image

    A CSV file is downloaded to the local Desktop.

    ss5.png

  4. Open the CSV file in Excel.

    ss6.png

 

Note: Logs can be exported using Filters.  Refer to: How to Add, Save, Load, and Clear Log Filters.  Once the filter is applied, follow the same steps listed above.

 

Export logs to a SCP or FTP server

Run the following commands to export log files:

  • SCP

    > scp export log traffic start-time equal 2011/12/21@12:00:00 end-time equal 2011/12/26@12:00:00 to <value> Destination (username:password@host) or (username@host)

  • FTP

    > ftp export log traffic start-time equal 2011/12/21@12:00:00 end-time equal 2011/12/26@12:00:00 to <value> Destination (username:password@host) or (username@host)

note: 'start-time' and 'end-time' are mandatory values when exporting from the CLI

 



Additional Information
Note that by default the export traffic logs exports only 65535 lines.
To increase the number of lines exported refer: How to Increase the Max. Rows in CSV Export


Attachments
Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000Clj3CAC&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Attachments
Choose Language