?
Solved

AWSTATS LogResolveMerge on Windows 2003

Posted on 2009-02-09
1
Medium Priority
?
1,249 Views
Last Modified: 2013-12-07
Hi Folks

I've been round in circles with this and am ready to pull any hair I might have left OUT! :)

I'm running AWSTATS on a Windows 2003 server. All working wonderfully well except that I simply cannot work out how to merge all the old logfiles into one file and get AWSTATS to correctly parse the resultant file. The file looks good and is approximately the size of all the logfiles added up together but when I then run awstats.pl on the file the result is all empty on the report. HELP!?

The sysntax I'm using to merge the files:
d:\awstats\tools\logresolvemerge.pl -dnslookup d:\website\W3CXXXXX\ex08*.log > 2008logs.log

The scan doesn't take nearly as long as I'd expect it to take and the result is a text file called 2008logs.log which, on inspection, looks OK. I then run the update for the report on that file like this:

d:\awstats\cgi-bin\awstats.pl -config=conffilename -update

The result is several .txt files, all exactly the same size (odd!) 6kb.

If I then go back to my web browser and run the report for year 2008 it tells me there were x thousands of non-view hits and all the stats are empty.

BAFFLED! Hope someone can point me in the right direction.

Cheers
Chris
0
Comment
Question by:kenwardc
1 Comment
 

Accepted Solution

by:
kenwardc earned 0 total points
ID: 23591394
Hi Folks

OK - While waiting for a response from someone I think I managed to work out how to do this.

1. Copy all daily logfiles from IIS into one single file for a particular year using the command copy exyy*.log final_logfilename.log
2. Edit the AWSTATS config file for that particular site and add the new logfile name.
3. Run the awstats.pl file on the config file.

Voila!

Now... to find out how to close this question but leave it here so other can see how I did this...
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Suggested Courses
Course of the Month15 days, 17 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question