[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] REPOST: Qube2 - Log reset



Jason Aspinall wrote:
> 
> Anyone know how to reset the logs on a Qube2 so that the web stats
> page on the admin site, are returned to zero?
>
> I figured downloading the logs locally would trip some flag into
> restarting the logs again.. no such luck...
> 
> The httpd log is getting mighty big now... and would really like to
> reset it without telnetting in, deleting the log file, then rebooting
> the Qube2.. there *has* to be an easier way...

Telnet into the box as admin.
su to root
run: "/usr/admserv/cgi-bin/.cobalt/webUsage/parseReport.pl -l /dev/null
-a /dev/null /usr/admserv/html/.cobalt/webUsage"

This will reset the web stats page.  If you want to start fresh
you need to remove the log file also.  Just do '>
/var/log/httpd/home-acceess'.
That will empty out the log file.

No need to reboot, but you do need to telnet into the box.

Jeff