ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Rotate access logs

book

Article ID: 237388

calendar_today

Updated On:

Products

ProxySG Software - SGOS

Issue/Introduction

Prevent excessively large access logs on the ProxySG.

Resolution

To rotate the logs via the WEB UI:

1. Navigate to Configuration - Access Logging - Logs - Upload Schedule. 

2. Go to 'Rotate the log file:' section.

-From the 'Daily at' drop-down list, specify the time of day to rotate the logs (for continuous uploads).

-To have the log rotated on a daily basis, select 'Every' and enter the time between uploads.

 

The following example shows how to rotate the logs from the CLI:

ProxySG>
ProxySG>en
ProxySG#
ProxySG#conf t
ProxySG#(config)access-log
ProxySG#(config access-log)edit log main
ProxySG#(config access-log)edit log main
ProxySG#(config log main)continuous-upload rotate-remote ?
 daily                        Specify time of day to switch remote logfiles
 hourly                       Switch remote logfile every "n" hours

ProxySG#(config log main)continuous-upload rotate-remote daily ?
 <rotation hour (0-23)>
ProxySG#(config log main)continuous-upload rotate-remote hourly ?
 <hours> [minutes]

 

Additional Information

Log rotation is only available for the 'continuous' upload type.