Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Web Reporting with Merged Site Logs

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  (IPv6) New Technology Heralds Unlimited Web Sites..  
Author Message
jwebadgility

External


Since: Jul 20, 2004
Posts: 2



(Msg. 1) Posted: Tue Jul 20, 2004 9:31 pm
Post subject: Web Reporting with Merged Site Logs
Archived from groups: alt>www>webmaster (more info?)

Does anyone know of any web log reporting tools that can generate one
single report based on multiple different websites?

For example, I have web1.com, web2.com, web3.com and web4.com. These
sites all belong to my same client. So, the client would like to see
one complete report that breaks down all the reporting data in one
report for all sites. Right now, this process is very manual for me as
I add up the numbers and hand generate a pdf monthly.

All these sites have different domain names and IP addresses, but live
on the same physical box. Also all of their logfiles are separate too.

Thanks!

Tony

 >> Stay informed about: Web Reporting with Merged Site Logs 
Back to top
Login to vote
usenet200407

External


Since: Jul 12, 2004
Posts: 88



(Msg. 2) Posted: Wed Jul 21, 2004 10:14 am
Post subject: Re: Web Reporting with Merged Site Logs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Tony wrote:

 > All these sites have different domain names and IP addresses, but live
 > on the same physical box. Also all of their logfiles are separate too.

Just concatenate all the log files together and then run a standard log
file analyser on the result.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ <a style='text-decoration: underline;' href="http://tobyinkster.co.uk/contact" target="_blank">http://tobyinkster.co.uk/contact</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Web Reporting with Merged Site Logs 
Back to top
Login to vote
ealfert

External


Since: Sep 14, 2004
Posts: 96



(Msg. 3) Posted: Wed Jul 21, 2004 11:39 am
Post subject: Re: Web Reporting with Merged Site Logs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Toby Inkster <usenet200407.DeleteThis@tobyinkster.co.uk> wrote in
news:pan.2004.07.21.06.14.24.129510@tobyinkster.co.uk:

 > Tony wrote:
 >
  >> All these sites have different domain names and IP addresses, but
live
  >> on the same physical box. Also all of their logfiles are separate
too.
 >
 > Just concatenate all the log files together and then run a standard
log
 > file analyser on the result.

You may run across some problems if you just concatenate. You also have
to resort the entries into chronological order.

# cd /var/log/apache/

# /usr/local/bin/mergelogs.pl access_log1 access_log1 access_log3 > all-
access_log

Following is the mergelogs.pl script....

#!/usr/bin/perl
#
# By Royans K Tharakan (rkt@pobox.com)
# Date: July 16 2001
# Updated: Aug 21 2001
# Version: $Id: mergelogs.pl,v 1.2 2001/10/29 20:28:10 control Exp $
#
# Usage: mergelogs.pl log1 log2 log3 log4.......
#################################################################3


use FileHandle;

$|=1;
$ignore[$#ignore+1]="10.1.10.13";
$ignore[$#ignore+1]="10.1.10.14";
$ignore[$#ignore+1]="10.1.10.15";
$ignore[$#ignore+1]="10.1.10.16";
$ignore[$#ignore+1]="10.32.";
$ignore[$#ignore+1]="10.1.10";
@files=@ARGV;
#print "@ARGV $#ARGV $#files -------";
#print $#files;
for $i (0..$#files)
{
# print "checking file $files[$i] $i\n";
$DATAIN[$i]=IO::File->new("<$files[$i]")||die "Can't open $files
[$i]";
}

$dataoutfile="$files[$#files]";

#open(STDOUT,">$dataoutfile")||die "Cant send data";

$stop=0;
&get_time_stamps();
while ($stop == 0)
{
#for $tt (keys %time) {print "COMPARE: $tt $time{$tt} \n ";}
# print "\n";
@time1=sort {$time{$a} cmp $time{$b}} keys %time;
#print "@time1\n";
# for $tt (@time1) {print "$tt $time{$tt}=";}
# print "\n";
if ($time{$time1[0]} != 93104863665)
{
addlog($time1[0],$time{$time1[1]});
}
else
{
$stop=1;
}
}


for $i (0..$#files-1)
{
$DATAIN[$i]->close();
}
#close(STDOUT);


sub addlog()
{
my ($FD,$timestamp)=@_;
$check_time=0;
# print "=== $FD $timestamp , $time{$FD} === \n";
while (($timestamp>=$time{$FD})&&($time{$FD}!=93104863665))
{
# print "=== $FD $time{$FD} $timestamp === \n";
print STDOUT "$datain[$FD]";
my $td="--";
while($td eq "--")
{
$td=readline($DATAIN[$FD]);
#print "$#ignore @ignore \n";
for $ignore_i (0..$#ignore)
{
if ($td=~/$ignore[$ignore_i]/)
{$td="--";}
}
#print "+1 $td $FD \n";
}
$datain[$FD]=$td;
#print "+2 $td $FD \n";
if ($datain[$FD]==0)
{
$time{$FD}=93104863665;
}
else
{
$time{$FD}=&gettime($datain[$FD]);
#print "==== 5 \n";
}
}
#print "==== 6 \n";
}

sub get_time_stamps()
{
for $i (0..$#files)
{
my $td="--";
while($td eq "--")
{
$td=readline($DATAIN[$FD]);
for $ignore_i (0..$#ignore)
{
if ($td=~/$ignore[$ignore_i]/)
{$td="--";}
}
#print "+3 $td $FD \n";
}
$input=$td;
$time{$i}=&gettime($input);
$datain[$i]=$input;
#print ":::===== $i $#files ====== ",$time{$i}," $datain
[$i]\n";
}
}

sub gettime()
{
my $i="@_";
# print "=========== $i ===========\n";
$i=~m/(\S+) - - \[(.*?)Sad.*?)\] \"\S+ (\S+) .*?\" (\d+) (\S+)(?:
\"(.*?)\" \"(.*?)\")?/
;
#print "=============== $1 $2 $3==============\n";
my $date = $2;
my $time = $3;
if($date=~m/(\d+)\/(\w+)\/(\d+)/i)
{
$day = $1;
$month = &month2num(lc($2));
# print "$month = $2\n";
$year = $3;
}
if($time=~m/(\d+)Sad\d+)Sad\d+).*/)
{
$hour = $1;
$min = $2;
$sec = $3;
}
$total=$year*31536000+$month*2592000+$day*86400+$hour*3600+$min*
60+$sec;
#print "4 ===\n";
return $total;
}


sub month2num{
my $mon = shift;
$mon =~ s%Jan%0%io;
$mon =~ s%Feb%1%io;
$mon =~ s%Mar%2%io;
$mon =~ s%Apr%3%io;
$mon =~ s%May%4%io;
$mon =~ s%Jun%5%io;
$mon =~ s%Jul%6%io;
$mon =~ s%Aug%7%io;
$mon =~ s%Sep%8%io;
$mon =~ s%Oct%9%io;
$mon =~ s%Nov%10%io;
$mon =~ s%Dec%11%io;
return $mon;
}





--
Edward Alfert
<a style='text-decoration: underline;' href="http://www.rootmode.com/" target="_blank">http://www.rootmode.com/</a>
Multiple Domain Hosting and Reseller Hosting Plans
Coupon Code (Recurring $5/month Discount): newsgroup<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Web Reporting with Merged Site Logs 
Back to top
Login to vote
jwebadgility

External


Since: Jul 20, 2004
Posts: 2



(Msg. 4) Posted: Thu Jul 22, 2004 10:05 am
Post subject: Re: Web Reporting with Merged Site Logs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Does it matter that these are IIS logs I'm talking about?

Thanks!
 >> Stay informed about: Web Reporting with Merged Site Logs 
Back to top
Login to vote
ealfert

External


Since: Sep 14, 2004
Posts: 96



(Msg. 5) Posted: Thu Jul 22, 2004 5:24 pm
Post subject: Re: Web Reporting with Merged Site Logs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

jwebadgility DeleteThis @gmail.com (Tony) wrote in news:f9f977e2.0407220605.7bab2666
@posting.google.com:

 > Does it matter that these are IIS logs I'm talking about?
 >
 > Thanks!

oh...wow...i'm so sorry to hear that... Smile

actually, all log analysis programs I have used (awstats, webalizer, etc.)
assume that log entries are in chronological order (since that is the order
they are created if you only have 1 log file) and use the knowledge that it
is chronological in order to interpret things like when a session starts
and ends (so that it can determine number of visits).

--
Edward Alfert
<a style='text-decoration: underline;' href="http://www.rootmode.com/" target="_blank">http://www.rootmode.com/</a>
Multiple Domain Hosting and Reseller Hosting Plans
Coupon Code (Recurring $5/month Discount): newsgroup<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Web Reporting with Merged Site Logs 
Back to top
Login to vote
spamblocked1

External


Since: Sep 19, 2003
Posts: 3499



(Msg. 6) Posted: Thu Jul 22, 2004 11:03 pm
Post subject: Re: Web Reporting with Merged Site Logs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Tony wrote:
 > Does it matter that these are IIS logs I'm talking about?
 > ...

What happened when you tried?

--
William Tasso<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Web Reporting with Merged Site Logs 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Adult site in my referrer logs - I keep seeing an adult site in my referrer logs (www.nudecelebblogs.com, or something like that). Why is this happening? I'm not really bothered, just curious. I don't have any links on that site (that I know of). My site is not an adult site, either...

Stat packages with keyword reporting - The one good thing I can say about Globat.com is that they have something called AWstats which gives you the actual keywords that people are finding your page from various search engines. How popular is this feature? Does anyone know any other servers..

Search Engine position reporting tool - I need a search engine reporting tool to see my ranking in Google. I have used http://www.pwqsoft.com/ it is okay if I only monitor the home page of my site, it needs to know specific URLs before it can generate the report. My site has 1000 pages, I..

Web Logs - Anyone got any idea what it means when you get a referral in your site logs like this one?.... XXXX:+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++ -- Sam. www.doohickeys.co.uk for desirable devices P.S. Brucie,...

web logs - My current hosting company using a standard windows server. When I FTP to the site, there is the standard logs folder with the *.log files in there. These are very difficult to read and understand. Does anyone know of any script or package out there tha...
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]