If I understand correctly, you are using sed to replace commas by tabs. Are the fields separated by commas in your log file ? If not, where are these commas used for ?
The use of LogFormat=2 is not recommended, as it does not always work in a reliable way. Please paste here a few rows from your log file and I will make a suggestion.
Please answer the other questions : “Are the fields separated by commas in your log file ? If not, where are these commas used for ? ” . This could clarify some issues. Thanks.
To answer your question. I dont see any commas within this LogFile.
and I dont get the second question.. could you please clarify your second question.
I've used the suggested logFormat and this is the error I'm getting :
AWStats did not find any valid log lines that match your LogFormat parameter, in the 50th first non commented lines read of your log. Your log file C:\\WINDOWS\\system32\\LogFiles\\ W3SVC821035329\\ISALOG_20081112_WEB_000.w3c must have a bad format or LogFormat parameter setup does not match this format.
Your AWStats LogFormat parameter is: %host %logname %ua %other %time2 %other %other %referer %other %other %other %other %other %bytesd %other %other %method %url %other %other %code %other %other %other %other %other %other %other This means each line in your web server log file need to have the following personalized log format: %host %logname %ua %other %time2 %other %other %referer %other %other %other %other %other %bytesd %other %other %method %url %other %other %code %other %other %other %other %other %other %other
And this is an example of records AWStats found in your log file (the record number 50 in your log):
Setup ('c:\\inetpub\\wwwroot\\awstats website\\cgi-bin/awstats.epweb-sharepoin.conf' file, web server or permissions) may be wrong. Check config file, permissions and AWStats documentation (in 'docs' directory).
the line coming from the log file does not match your #Fields: in your first post at all. I guess that the #Fields: you provided is not coming from the log file you analyze.
the line coming from the log file contains a user-agent field which is probably not acceptable for AWStats (this is c-agent in your #Fields: ). The user-agent cannot be processed if it contains spaces and it is also delimited by spaces. A cs(User-Agent) field would be easier to process for AWStats.
if there are no commas in the log file, I don't see any reason to use the sed command as you do it. Where is this command coming from ?
If they dont look the same I will try getting a new and fresh Logfile..
However I've manage to get a LogFormat that works but not Fully because I dont get any new Qualifying records.. I get “16688 dropped and 4455 corrupt “