aot2002
asked on
Generated by Webalizer Version 2.01
all logs are here from apache
/etc/httpd/logs/
each one for each site is like so !
wwwsite1-access.log
wwwsite1-error.log
wwwsite3-access.log
wwwsite3-error.log
wwwsite2-access.log
wwwsite2-error.log
how can i run webalizer on the files to show me the information i need
i tried runnning it as
webalizer /etc/httpd/logs/siteone.co
also tried
webalizer /etc/httpd/logs/*
but i get all the sites mixed from the *
Correct me if im wrong but i thought i had to have some type of conifiguration in either the httpd.conf to catch the information i needed ?
Or can i do it as im stating and run it on the apache access logs ?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Error: Can't open log file Stats
mkdir: cannot create directory `MYDOMIAIN FILE NAME' : File exists
mkdir: cannot create directory `MYDOMIAIN FILE NAME' : File exists
ASKER
Also i had to change line 4 the $title to TITLE
LOGDIR=/etc/httpd/logs/
WEBALIZER=/usr/bin/webaliz er
OUTPUTDIR=/var/www/html/us age
TITLE="Web Stats for - "
for config in $(dir -1 $LOGDIR |grep access); do
mkdir $OUTPUTDIR"/"$config
cat $(echo $LOGDIR"/"$config) |$WEBALIZER -o $OUTPUTDIR"/"$config -t $TITLE$config:
done
LOGDIR=/etc/httpd/logs/
WEBALIZER=/usr/bin/webaliz
OUTPUTDIR=/var/www/html/us
TITLE="Web Stats for - "
for config in $(dir -1 $LOGDIR |grep access); do
mkdir $OUTPUTDIR"/"$config
cat $(echo $LOGDIR"/"$config) |$WEBALIZER -o $OUTPUTDIR"/"$config -t $TITLE$config:
done
ASKER
its not working ?
what should it be doing as im getting errors ?
Error: Can't open log file Stats
mkdir: cannot create directory `/var/www/html/usage/tooso onbyme.com -access_lo g.4': File exists
Error: Can't open log file Stats
what should it be doing as im getting errors ?
Error: Can't open log file Stats
mkdir: cannot create directory `/var/www/html/usage/tooso
Error: Can't open log file Stats
ASKER
if so show me a quick example as i removed the default virtual ones with mine along time ago