Koozali.org: home of the SME Server

custom logs for webalizer

Ben

custom logs for webalizer
« on: March 12, 2002, 06:44:08 AM »
Hi slugs,
I'm wanting to implement e-smith SME V5 server.
I'd like to use webalizer with the virtual domains.
I'm used to having the access_log in each V.domains area however SME
currently has all http hits log into one file.
I've looked on the e-smith site and google but can't find anything.
I believe the file to edit is called 45CustomLogs but just not sure
how/where to edit it.
For example Domain1, Domain2, etc, or %Domain/access_log... something like
that.

The file is copied below and any help would be appreciated!
TIA Ben

# The following directives define some format nicknames for use with
# a CustomLog directive (see below).

LogFormat "%h %l %u %t \"%r\" %>s %b \"%\{Referer\}i\" \"%\{User-Agent\}i\""
combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%\{Referer\}i\"
\"%\{User-Agent\}i\"" combined_virtual
LogFormat "%\{Referer\}i -> %U" referer
LogFormat "%\{User-agent\}i" agent

# The location of the access logfile (Common Logfile Format).
# If this does not start with /, ServerRoot is prepended to it.

# CustomLog logs/access_log common
CustomLog { makelogfilename("/var/log/httpd/access_log") } combined_virtual

# If you would like to have an agent and referer logfile uncomment the
# following directives.

#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

# If you prefer a single logfile with access, agent and referer information
# (Combined Logfile Format) you can use the following directive.

#CustomLog logs/access_log combined

DJ_Ramjet99

Re: custom logs for webalizer
« Reply #1 on: March 14, 2002, 05:34:47 AM »
Hey Ben, suggest you check out AWStats intead in the user-contrib dir as it will probably do what you want Webalizer to do. What's a slug BTW ?

Dan G.

Re: custom logs for webalizer
« Reply #2 on: March 14, 2002, 05:51:33 AM »
I've been running the AWStats 4.0 beta package for SME --- it's flawless, and MUCH better than 3.x.  It's actually sane now.  Highly recommended:  http://www.neddix.de/sme/awstats/index.php

Ben

Re: custom logs for webalizer
« Reply #3 on: March 18, 2002, 03:47:39 AM »
heh heh,
Sorry about the SLUG bit. It was originally a post to Sydney Linux Users Group or SLUG for short. Just an affectionate name for other Linux users on the list. I just copied and pasted the posting and forgot to take out the Slug bit.

Thanks for the replies and I'll try the suggestion. I hope it does individual domains etc. I'd really love to get SME working as my standard as I prefer straightforward setups.
Ben

Ruusvuu

Re: custom logs for webalizer
« Reply #4 on: March 25, 2002, 05:14:18 PM »
Does AWStats need to be installed within each domain in order for that domain to be listed under List of Domains?

If so , do I rpm the file multiple times or just copy the files from one domain to the next?

Thanks

Dan G.

Re: custom logs for webalizer
« Reply #5 on: March 25, 2002, 06:30:13 PM »
AWStats will automatically add entries for each virtual domain ---- no pilot intervention required.  When you go to your main AWStats page (off the "Web Statistics link in server-manager), you will get a list of all the virtual domains configured.  Keep in mind, you won't see these new domains until they actually receive traffic --- and if that traffic comes from inside your network, it doesn't count.   If you just can't wait to be sure, click the "Click here to configure AWStats" link and flip the "Ignore hits from your local network:" option to "NO."  Then, blast your virtual website with some surfing hits, and you'll see the new link on the AWStats main page.

Dan

Ruusvuu

Re: custom logs for webalizer
« Reply #6 on: March 25, 2002, 06:36:58 PM »
AWESOME!

Thanks, Dan