book
Article ID: CTX277306
calendar_today
Updated On:
Description
To modify the time interval at which ns.log is rotated/ archived.
This article illustrates how to change the log archival interval from 1 hour to 30 minutes.
Instructions
The newsyslog utility archives log files, if necessary, and rotates the system logs so the current log is empty when rotation occurs. The system crontab runs this utility every hour and it reads the configuration file which specifies the files to rotate and the archive conditions. The archived files may be compressed if required.
We can modify the crontab configuration file to modify the frequency
To archive log every 30 minutes. So we can modify the /etc/crontab as below:
#minute hour mday month wday who command
*/30 * * * * root newsyslog
To persist the changes across reboots, copy /etc/crontab to /nsconfig/crontab (during boot, ADC replaces the default /etc/crontab file with /nsconfig/crontab if it is present):
cp /etc/crontab /nsconfig/crontab
NOTE: copying crontab via rc.netscaler, as was documented in previous versions of this article, is an obsolete method and should not be used.