HOME | SITEMAP | SUPPORT | FAQs
DOMAIN MANAGE/BACKROOM | BILLING
4Domains Web Hosting and Domain Registration
Account Login   WebMail   Live Chat

Web Hosting

Domain Names

Domain Auction

Solutions

Home > Support > Serverhelp > Servadmin > Vnukelog

Clearing Log Files Using vnukelog

Use the vnukelog command to clear your Virtual Server log files. The vnukelog command can be used to clear the ~/usr/log/messages file as well as all Virtual Server and Virtual Subhost log files.

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

Use the -h flag to see all vnukelog options:

% vnukelog -i
Usage: vnukelog [-h] [-i] [-r]
   -h   display this message
   -i   enter interactive mode
   -r   nuke root server logs only
Use no options to nuke all log files on the virtual server.

Use the vnukelog command without any flags to clear the ~/usr/log/messages file and ALL Virtual Server and Virtual Subhost log files:

% vnukelog

Use the -r flag to clear just the Virtual Server 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 Server and Virtual Subhost log files you want to clear.

% vnukelog -i

Regularly Clearing Your Log Files Using Cron

You can easily use the Cron Program Scheduler feature to schedule vnukelog to regularly nuke your Virtual Server 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 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).


Why Us? | About | Contact Us
Knowledge Base | Support Request
Expired Domains | Domain Name Auctions | VPS Directory | DNS Tools
Hosting Terms | Domain Terms | Privacy Policy
Copyright © 2008 - 4Domains.com, Inc.


web hostinghostingdomaindomain namedomain namescheap web hostingecommerce website designdomain registration

Web Monitoring | SEO Technology | Hacker Scanner | DNS Tools | Online Backup