AWSTATS LogResolveMerge on Windows 2003

Posted on 2009-02-09
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 on the file the result is all empty on the report. HELP!?

The sysntax I'm using to merge the files:
d:\awstats\tools\ -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\ -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.

Question by:kenwardc
    1 Comment

    Accepted Solution

    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 file on the config file.


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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    The viewer will learn how to dynamically set the form action using jQuery.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now