GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

VPS v2: Apache Web Server: Clearing Your VPS Log Files

bullet Introduction

Use the vnukelog command to clear your Virtual Private Servers log files. The vnukelog command can be used to clear all Web Server Log Files and Virtual Subhost log files.

NOTE: The vnukelog command now incorporates the functionality of vnl command documented in previous versions of the Virtual Private Server Handbook. The vnl command and vnukelog2 command should no longer be used.

Run the vnukelog command from your server's SSH prompt, as root:

Use the vnukelog command without any flags to clear ALL Virtual Private Servers and Virtual Subhost log files:

# vnukelog

Use the -h flag to see all vnukelog options:

# vnukelog -h
Usage: vnukelog [-h] [-i] [-r]
   -h   display this message
   -i   enter interactive mode
   -r   nuke root server logs only

Use the -r flag to clear just the Virtual Private Servers log files, and leave the Virtual Subhost log files intact:

# vnukelog -r

Use the -i flag to enter an interactive mode that allows you to clear just the Virtual Private Server and Virtual Subhost log files you want to clear.

# vnukelog -i

 

bullet Cron

You can easily use the Cron program scheduler feature to schedule vnukelog to regularly nuke your Virtual Private Servers log files. Add something like this to your crontab:

0 1 1 1-12/3 *   /usr/local/bin/vnukelog

This will run the command /usr/local/bin/vnukelog (which clears all of your Virtual Private Server log files) at 1 AM on the first day of the first month of every quarter, or January, April, July, and October (1-12/3).


Toll Free 1-866-GSP-4400 • 1-301-464-9363 • service@gsp.com
Copyright © 1994-2016 GSP Services, Inc.