Discussion:
Questions about Webalizer
Cristian Sava
2017-12-12 11:25:38 UTC
Permalink
Hi all,

I have some problems with Webalizer:
1) It can be manually started but not with cron.
2) I have http and https on the same server and it refuse to show
statistics for ssl_access_log
I tried to add "LogFile /var/log/httpd/ssl_access_log" to
/etc/webalizer.conf with no success (it seems to inspect but it does
not update the statistics).

I searched with Google but nothing worked for me.
What am I missing?

Thanks,
C.Sava
_______________________________________________
users mailing list -- ***@lists.fedoraproject.org
To unsubscribe send an
Dave Stevens
2017-12-12 16:32:30 UTC
Permalink
Post by Cristian Sava
Hi all,
1) It can be manually started but not with cron.
2) I have http and https on the same server and it refuse to show
statistics for ssl_access_log
I tried to add "LogFile /var/log/httpd/ssl_access_log" to
/etc/webalizer.conf with no success (it seems to inspect but it does
not update the statistics).
I searched with Google but nothing worked for me.
What am I missing?
Thanks,
C.Sava
webalizer is a real live project with a web site and a very helpful
developer. here: http://www.webalizer.org/

Dave
Post by Cristian Sava
_______________________________________________
--
"As long as politics is the shadow cast on society by big business,
the attenuation of the shadow will not change the substance."

-- John Dewey




_______________________________________________
users mailing list -- ***@lists.fedoraproject.org
To unsubscribe send an email to users-lea
Charlie Dennett
2017-12-12 17:09:35 UTC
Permalink
I have a small web server and user webalizer. I recently converted to all
https. You say you "added" the ssl access log. That makes me think you
have two log files defined in your webalizer.conf file. From what I
understand, webalizer only supports one log file. (Someone will correct me
if I'm wrong.) I changed my webalizer.conf file to use only the ssl access
log and it reads that with no problem. I don;t really care about the
original access log. Since I am all https now all it has are the initial
http hits logged with status code 301 for the redirect to the https side.
I guess you'd somehow have to combine the two log files, either by changing
the logging configuration to log everything to a single log file or by
running a process that would merge the two log files and feed that to
webalizer.

http://www.dennett.org if your curious. Not too interesting of you're not
into genealogy.

Charlie Dennett
Post by Cristian Sava
Hi all,
1) It can be manually started but not with cron.
2) I have http and https on the same server and it refuse to show
statistics for ssl_access_log
I tried to add "LogFile /var/log/httpd/ssl_access_log" to
/etc/webalizer.conf with no success (it seems to inspect but it does
not update the statistics).
I searched with Google but nothing worked for me.
What am I missing?
Thanks,
C.Sava
_______________________________________________
--
Charlie
Rick Stevens
2017-12-12 20:11:43 UTC
Permalink
I have a small web server and user webalizer.  I recently converted to
all https.  You say you "added" the ssl access log.  That makes me think
you have two log files defined in your webalizer.conf file.  From what I
understand, webalizer only supports one log file.  (Someone will correct
me if I'm wrong.)  I changed my webalizer.conf file to use only the ssl
access log and it reads that with no problem.  I don;t really care about
the original access log.  Since I am all https now all it has are the
initial http hits logged with status code 301 for the redirect to the
https side.  I guess you'd somehow have to combine the two log files,
either by changing the logging configuration to log everything to a
single log file or by running a process that would merge the two log
files and feed that to webalizer.
http://www.dennett.org if your curious.  Not too interesting of you're
not into genealogy.
Charlie Dennett
Hi all,
1) It can be manually started but not with cron.
2) I have http and https on the same server and it refuse to show
statistics for ssl_access_log
 I tried to add "LogFile /var/log/httpd/ssl_access_log" to
/etc/webalizer.conf with no success (it seems to inspect but it does
not update the statistics).
I searched with Google but nothing worked for me.
What am I missing?
Thanks,
C.Sava
Webalizer can only deal with a single log file at a time. You can
pass the logfile in as the last argument on the command line when
you run it (no need to bugger the webalizer.conf file or rename the
file).

Keep in mind, however, that webalizer expects data in chronological
order and if it sees a log entry from a file that is earlier than one
it has already processed, it will ignore that log entry (usually with a
message stating the fact). Thus, if you have two logs (one from the
regular server and one from the SSL-enabled server) that cover the same
time period, webalizer will probably be ignoring all of the data from
the second log you fed it. You can bugger the history files and such
to try to get it to behave, but that's the nature of webalizer.

To get around that limitation, I wrote a program long, LONG ago that
would take logfiles from multiple servers (a load-balanced web server
cluster), interleave the entries from all of them into chronological
order and output a single file with all of the data in it. That output
file was fed to webalizer so we could analyze the cluster as though it
were a single machine. IIRC it was written in C. I can probably dig the
source code out of my archives somewhere and send it to you if you
really need it.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital ***@alldigital.com -
- AIM/Skype: therps2 ICQ: 22643734 Yahoo: origrps2 -
- -
- If Windows isn't a virus, then it sure as hell is a carrier! -
----------------------------------------------------------------------
_______________________________________________
users mailing list -- ***@lists.fedoraproject.org
To unsubscri
Cristian Sava
2017-12-13 08:13:57 UTC
Permalink
Thank you all,

I have both access_log and ssl_access_log.
I hoped for an easy solution but it's clear that it is not such thing.
I will switch to only https.

C.S.


_______________________________________________
users mailing list -- ***@lists.fedoraproject.org
To unsubscribe send an email to users-***@lists.fedoraproject.or
Cameron Simpson
2017-12-13 11:08:45 UTC
Permalink
Post by Rick Stevens
I have a small web server and user webalizer.  I recently converted to
all https.  You say you "added" the ssl access log.  That makes me think
you have two log files defined in your webalizer.conf file.  From what I
understand, webalizer only supports one log file.
[...]
Post by Rick Stevens
Webalizer can only deal with a single log file at a time. You can
pass the logfile in as the last argument on the command line when
you run it (no need to bugger the webalizer.conf file or rename the
file).
Keep in mind, however, that webalizer expects data in chronological
order and if it sees a log entry from a file that is earlier than one
it has already processed, it will ignore that log entry (usually with a
message stating the fact). [...]
To get around that limitation, I wrote a program long, LONG ago that
would take logfiles from multiple servers (a load-balanced web server
cluster), interleave the entries from all of them into chronological
order and output a single file with all of the data in it. That output
file was fed to webalizer so we could analyze the cluster as though it
were a single machine. IIRC it was written in C. I can probably dig the
source code out of my archives somewhere and send it to you if you
really need it.
Me too! I used python. Mine's here:

https://bitbucket.org/cameron_simpson/css/src/tip/bin/merge-apache-logs

It could do with some polish, but we used it for years to merge apache logs
(http and https IIRC) from multiple backend servers for webalizer analysis.

Cheers,
Cameron Simpson <***@cskk.id.au> (formerly ***@zip.com.au)
_______________________________________________
users mailing list -- ***@lists.fedoraproject.org
To unsubscribe send an email to us

Continue reading on narkive:
Loading...