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

[cobalt-users] Logs and Webalizer



Hello Guys,

First of all, you must be saying "Oh no! not the same topic again", but
please continue reading. I have a RaQ3, which stats are not being generated.
/var/log/httpd/access is being generated daily but any sites "web.log",
"mail.log" and other files are not being generated. Webalizer have stopped
working since 26 Jan.

I have tried everything I could find on http://www.webhostingtalk.com but
could'nt get it to work. Also, doing a

ls - l access

on /var/log/httpd/access reveals:

[root@www httpd]# ls -l access
-rw-r--r--   1 root     root     306481592 Feb 12 11:37 access

Somebody also told me that editing "/etc/logrotate.d/apache" and make it so
that Webalizer runs before logs are split. Here is what my
/etc/logrotate.d/apache looks like:

----------------------------------------------------------------------------
-------------------------------
/var/log/httpd/access {
        prerotate
                /usr/local/sbin/split_logs web < /var/log/httpd/access
        endscript
    missingok
    postrotate
        /bin/kill -USR1 `cat /var/run/httpd.pid`
    /usr/sbin/webalizer.pl
    endscript
    daily
}

/var/log/httpd/error {
    missingok
    postrotate
        /bin/kill -USR1 `cat /var/run/httpd.pid`
    endscript
}
/var/log/httpd/adm_access {
   missingok
   compress
   size 3M
    postrotate
        /bin/kill -USR1 `cat /var/run/admserv.pid`
    endscript

}

/var/log/httpd/adm_error {
    missingok
    compress
    size 3M
    postrotate
        /bin/kill -USR1 `cat /var/run/admserv.pid`
    endscript
}
----------------------------------------------------------------------------
-------------------------------

Can anyone please tell me  a solution to solve this problem? My clients have
been asking me for stats lately.
Also, if you think this have been discussed before, if possible please
provide a link of the page which explains the solution.

I would be very thankful.


Regards,
Omair Haroon