
(This assumes that all of the input records are correctly formatted and that you are willing to live with the fact that whatever the original fields were that were passed to your web server via HTTP have been replaced with the formatted fields that make awstats happy.)Īs a general principle, I would recommend having a meeting with whoever is responsible for generation of the logs, and finding out why they can't be generated in one of the standard formats. So if you could capture the logs and write something like a Perl script that would insert appropriately formatted fields, you could pass the results to awstats. Is it possible for you to capture the logs and convert them to a format awstats understands before they're passed to awstats? It looks to me as if the first five entries are a Unix date without the timezone, and the next to last entry is the URL without the method or the HTTP version. I do not understand why AWStats is wants me to use the %methodurl or %method when we are not even logging those paramaters.Ī co-worker mentioned it might have to do with the time format so made a new log file with the time stamp removed and AWStats complained about a time stamp.Īny and all help will be greatly appreciated.ġ. I have replaced %url with %methodurl and %method but with no such luck. Check config file, permissions and AWStats documentation (in 'docs' directory)." Setup ('./' file, web server or permissions) may be wrong. "Error: Your personalized LogFormat does not include all fields required by AWStats (Add %methodurl or %method in your LogFormat string). Now when I go to run AWStats, I am returned with this error. %time3 %other %host %bytesd %url %logname I have checked all the directives against Apaches website and this is what I "think" should be in my AWStats conf file. "%t %T %h %b %f %u"Īnd here is a sample of the output in our log file. This is how the log file directive is set up.
#Awstats apache log format download
I download my apache log files to my box everyday and "try" to run AWStats.

#Awstats apache log format windows
I am running Cygwin on a windows 2K box and have AWStats running under Cygwin. I am having an problem configuring the AWStats Conf file to match my apache log.
