Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Lasse Johansson on November 27, 2000, 01:17:01 AM

Title: Http logs
Post by: Lasse Johansson on November 27, 2000, 01:17:01 AM
How do I change the weekly logrotate for the httpd logs?
I need to do that in order to use the webalizer rpm, or my statistics are suddenly minimized to only four weeks...
Title: RE: Http logs
Post by: Tim Litwiller on November 27, 2000, 03:16:27 AM
an easier way might be to find the webalizer.conf file and turn on the history options so it keeps history of your site logs.

I can post a copy of mine if you would like.
Title: RE: Http logs
Post by: Alexie on November 27, 2000, 09:46:11 AM
Thx i needed this one to...:-)
Do we need to restart the server after this.?+?
Title: RE: Http logs
Post by: Lasse Johansson on November 27, 2000, 10:10:55 AM
Tim Litwiller wrote:

> an easier way might be to find the webalizer.conf file and turn
> on the history options so it keeps history of your site logs.
>
> I can post a copy of mine if you would like.
>

Well, please do, it seems like more people need this as well!
Title: RE: Http logs
Post by: Tim Litwiller on November 27, 2000, 10:47:58 PM
here are the setting to change

add these near the top of you webalizer.conf

LogFile       /var/log/httpd/access_log
HistoryName     webalizer.hist
Incremental     yes
IncrementalName webalizer.current
Title: RE: Http logs
Post by: Lasse Johansson on November 27, 2000, 10:50:36 PM
Tim Litwiller wrote:

> LogFile       /var/log/httpd/access_log HistoryName
> webalizer.hist Incremental     yes IncrementalName
> webalizer.current

Thanx, I'll try it first thing in the morning (late night in this country now...)