Deleting logs

You can use the vnukelog command to delete log files. The vnukelog command can be used to clear the ~/var/log/messages file as well as all Developer Server and virtual subhost log files.

The cron program is a system scheduler for UNIX that provides the -n (nuke) command for a cron job that deletes your logs. For more information, see:

  • Clearing Log Files Using vnukelog ()
  • cron ()
cron can also be set up to feed logs to one of the three server side analysis programs (i.e. Analog, http-analyze, Webalizer) on an hourly, daily, weekly, monthly basis, from which a stats report is generated. For more information, see "Managing with cron" in Chapter 8.

Back