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. Set LogFile to C:\u_ex150105.log for today).I've put it inside my C:\(where damirscorner is the name of the site I'm generating statistics for), and start following AWStats' instructions on how to change it for your needs. You only need to unpack it to a location, where IIS has access it. It's available in a couple of different formats, zip archive probably being the most handy of them in Windows. The next step is downloading the latest version of AWStats. If perl.exe is available from command line after the installation, you can be sure it completed successfully. It's available as a standard MSI Installer package which you only need to run with default settings. There are a couple of distributions available for Windows. Since the application is written in Perl, it makes sense to install it first. As is often the case, I'm writing this blog post for future reference. In spite of its extensive documentation, I've hit a couple of stumbling blocks while setting it up in my environment. AWStats is one of the most popular tools for generating web site statistics from server logs, and it's also the one I have selected as a replacement for Google Analytics.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |