• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1257
  • Last Modified:

AWSTATS LogResolveMerge on Windows 2003

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
kenwardc
Asked:
kenwardc
1 Solution
 
kenwardcAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now