Koozali.org: home of the SME Server

Http logs

Lasse Johansson

Http logs
« 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...

Tim Litwiller

RE: Http logs
« Reply #1 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.

Alexie

RE: Http logs
« Reply #2 on: November 27, 2000, 09:46:11 AM »
Thx i needed this one to...:-)
Do we need to restart the server after this.?+?

Lasse Johansson

RE: Http logs
« Reply #3 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!

Tim Litwiller

RE: Http logs
« Reply #4 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

Lasse Johansson

RE: Http logs
« Reply #5 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...)