Web Hosting Talk







View Full Version : Webalizer (webstats)


davarious
01-14-2002, 05:41 PM
i have downloaded webalizer ftom: http://www.webalizer.com
and installed everything correctly (from the INSTALL file).

when i start the program..
by typing: ./webalizer -c webstats.conf

he will say:

[root@server webstats]# ./webalizer -c webstats.conf
Error: Unable to open configuration file webstats.conf
Webalizer V2.01-09 (Linux 2.2.20) English
Using logfile STDIN (clf)
Creating output in current directory
Hostname for reports is 'server'
Reading history file... webalizer.hist


and when i press ENTER he will show:

Warning: Truncating oversized hostname
Skipping bad record (1)


what's wrong ???

airtime166
01-14-2002, 06:01 PM
its takes 24 hours before the stats and webalizer to start working , i had the same problem but i waited a day then it worked lol -- not sure if this helps you

serve-you
01-14-2002, 06:01 PM
Well, first, it is saying that it can't find your config file. Make sure it lives in either /etc (it will use this one by default if it can't find the one specified) or maybe you need to specify the path to it?

The truncating errors, are not really a problem. They are just skpping bad entries. from my understanding this would be when a hostname includes an absolute address (domain.com/blah/blah/blah/blah.html). This has too many characters to be a valid hostname, so it cuts off the end to make it valid. I may be wrong though.

-Dan

serve-you
01-14-2002, 06:03 PM
Originally posted by airtime166
its takes 24 hours before the stats and webalizer to start working , i had the same problem but i waited a day then it worked lol -- not sure if this helps you

If you run them by hand, they will work immediately.

-Dan

airtime166
01-14-2002, 06:06 PM
thats true

davarious
01-15-2002, 06:21 PM
it'd done ;-)
i'm running the webalizer..

but now... how i must shutdown it??

he cannot find anything in:
ps aux |grep webalizer

and i see notihing about webalizer in:
ps aux


who knows??

serve-you
01-15-2002, 06:24 PM
It only runs when you tell it. Usually this is pretty quick depending on the size of your logs. So no need to "stop" it. If you want it to run regularly, you need to setup a cronjob for it.

-Dan

davarious
01-16-2002, 09:08 AM
ok.. i understand...
but this is my latest question about webalizer...

he will now log every website in one webalizer,
but how can i run it. that i can put more then 1 log file and more hostname;s so he will create for every website that i will host a own webalizer...??

understand ??


(yeah, my english is not so very well,, i'm from the netherlands)
:stickout

airtime166
01-16-2002, 10:57 AM
if you installed it thru telnet , it will work for all the virtual sites on that server --


mas

serve-you
01-16-2002, 11:07 AM
You need to make a run it against each log that you want to create stats for. If you want them all to be the same, you could use a generic config file. I usualyy create a seperate config for each domain, so that I can have certain details included of left out of some reports.

You will also need to create a home for each report. For example, a "stats" directory under each domain. Or even a global "stats" directory where you can keep them all as domain1.html domain2.html, etc...

-Dan

joachim
01-24-2002, 07:54 PM
Hello,

I have the same problem. How can I create several
access logs for each domain? Or, shouldnīt
webalizer filer the standard log file for each domain? I think on the raq itīs the way it works.

thanks Joachim

serve-you
01-24-2002, 08:02 PM
You can run webalizer against as many logs as you want. The key is making sure that it can use the LogFormat. Any "standard" log will work fine. Standard being apache "common" or "combined"

-Dan

Ahmad
01-24-2002, 08:06 PM
I'm not sure about that, but I think that you have to do the filtering yourself.

In general, for each domain, get that domains log entries from the general log file (grep or something), and pipe the results into webalyzer, the output is that domains report.

That is only one idea, there are probably many others.

serve-you
01-24-2002, 08:19 PM
Oh, if you are referring to multiple domains in onle log, then sorry. I was not. You can run webalizer against a single log with multiple domains. You just need to make sure that it is logging the vhost name, or webalizer will not be able to tell the entries apart.

-Dan

joachim
01-24-2002, 08:25 PM
I see,

how can I filter with grep a certain domain and pipe it into the webalizer? something like
grep mydomain.com pipe webalizer ?

Maybe one the gurus has any idea of the correct syntax?

Joachim