Cleaning Traffic Logs for a Specific Date Range

Cleaning Traffic Logs for a Specific Date Range

22861
Created On 09/26/18 13:54 PM - Last Modified 06/08/23 03:17 AM


Resolution


To purge the traffic logs of old entries:

 

Export logs to a host (this example uses a linux server)

  • scp export logdb to username@host:path/logdb.tgz

 

Untar and clean the logs

  • mkdir temp
  • tar xfz logdb.tgz -C temp
  • cf temp/traffic/1
  • Remove any folder you wish to purge from the logs

 

Compress the cleaned logs

  • cd ../..
  • tar cfz new_logdb.tgz ./*

 

Import the new log file

  • scp import logdb from username@host:path/new_logdb.tgz

Note: The scp import logdb command is not applicable for Panorama VM running 6.0.x. The command applies to the Palo Alto Networks firewalls, all versions of M-100, and versions up to 5.1 for the Panorama VM.

 

owner: hyun



Actions
  • Print
  • Copy Link

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

Choose Language