Blue Reef Technical Support Blue Reef Virtual Server Reseller ProgramInstallation instructions, manuals, how-tos, and more!About Blue Reef Consulting, Inc.

About Blue Reef Virtual ServersEcommerce Solutions for your Virtual ServerSearch the Blue Reef Virtual Server web site
Return to Blue Reef Virtual Servers Home Page
Order virtual servers, software, computers, and more!
Return to Blue Reef Main Home Page
Specials
Site Map
Support Solutions to help you do business with your Virtual Server.



Blue Reef Virtual Servers
Virtual Server Support
Virtual Server Addons
Servers Stats and Log Reporting
Statistics Overview
Setting Log Formats
Rotating Log Files
Clearing Log Files with vnukelog
Clear Log Files Regularly with Cron
Analog Log File Analyzer
Getstats Log File Analyzer
http-analyzehttp-analyze
Webalizer
WebTrends Log File Analyzer
Request help using our Problem Tracking System
Order a Blue Reef Virtual Server now!


Rotating Web Server Log Files

You can use the rotatelogs utility to rotate your Virtual Server web server log files. Basically, rotatelogs is a wrapper that you include in the Log definitions in the /www/conf/httpd.conf file on your Virtual Server:
    TransferLog "| /usr/bin/rotatelogs /www/logs/access_log 86400"
This creates the files /www/logs/access_log.nnnn where nnnn is the system time at which the log starts (system time is the number of seconds that have elapsed since January 1, 1970). At the end of each rotation time (here after 24 hours) a new log is started.

In order to use the rotatelogs wrapper you must copy the rotatelogs executable into your local directory structure. To do this, Telnet or SSH to your Virtual Server and execute the following command:

    % cp /usr/local/bin/rotatelogs ~/usr/bin

You can rotate the other web server log files as well:

AgentLog "|rotatelogs /www/logs/agent_log 86400"
RefererLog "|rotatelogs /www/logs/referer_log 86400"
ErrorLog "|rotatelogs /www/logs/error_log 86400"

SEE ALSO:

Using Telnet/SSH

Server Configuration


Server Add-ons

Configuring Server Logs

Rotating Server Logs

Scheduled Log Maintenance with Cron

BOOKS TO HELP YOU:

Web Site Stats: Tracking Hits and Analyzing Web Traffic
Web Site Stats: Tracking Hits and Analyzing Web Traffic

$25.46

The Web Traffic Bible: Master Strategies for Creating a Traffic JAM on Your Website
The Web Traffic Bible: Master Strategies for Creating a Traffic JAM on Your Website

$24.99

Amazon.com logo
Search for :
Enter keywords...