![]() ![]() It can analyze log files from all major server tools like Apache log files (NCSA combined/XLF/ELF log format or common/CLF log format), It uses a partial information file to be able to process large log files, often and quickly. This log analyzer works as a CGI or from command lineĪnd shows you all possible information your log contains, in few graphical web pages. I used Windows Task Scheduler to create a job which runs at 3 in the morning every day and runs Perl ( C:\Perl\bin\perl.exe, to be exact) with the following arguments: C:\AWStats has been working flawlessly since I've set it up and I can now check fresh statistics for my blog every morning.AWStats is a free powerful and featureful tool that generates advanced web, streaming, ftp or mail server statistics, graphically. As you can see from the first screenshot, I have configured my Log File Rollover to happen Daily, therefore I'll need to process the log files daily as well, once they won't change any more. AWStats can only parse each log file once, so you'll need to match the schedule with your IIS settings. You still need to setup a schedule for updating the statistics with new data. You might also want to add a index.html file inside the = "cgi-bin/?config=damirscorner" Page Redirection Īgain, replace damirscorner in all 3 occurrences with your own site name. Just point it to the as shown in the following screenshot (make sure the path to PerlEx30.dll is correct): You only need to configure a new web site or web application in IIS which will serve the newly generated data. Change your command prompt current dir to Replace damirscorner with the site name which you have used when naming your *.conf file. Now you can process the generated log file with AWStats by overriding the log file path from its settings.It should be near the top of the file and starts with #Fields. ![]() You can copy it from one of the original log files which you have just merged. You'll need to insert it at the top of the created file yourself or AWStats will fail to parse it. The resulting file will have all the comment lines removed, including the one specifying the order of columns in the log.Merge all old files into a single one by calling : perl C:\OldLogs\*.log > C:\OldLogs\merged.log.Open command prompt and go into tools subfolder of your AWStats installation.Skip the log file for today as it will get parsed the next morning. Copy old log files into a separate folder (e.g.With the help of this StackOverflow answer, I've come up with the following steps: If you have old log files you want to parse, now is the right time to do it. Set DirData to C:\WWW\awstats-7.3\AWStats can parse logs in almost any format, but its best to just select W3C log file format in IIS and include all the required fields, as shown in the following screenshot:.I chose this offset because I'm processing the logs for the previous day at 3 in the morning. The -4 part for years, months and days makes AWStats look for a file matching the date from 4 hours ago. ![]()
0 Comments
Leave a Reply. |