Forum Replies Created
-
AuthorPosts
-
October 12, 2005 at 9:02 pm in reply to: rotatelog on OS X Server (Archive every 7 days)(awstats makes my head ache) #363592
Kyle
Participantbubbleboy wrote:
My head is aching and about to explode.
I keep getting an error when I try to do an awstats update that says I don’t have the right log file type defined. I’ve tried just using combined but OSX’s combined format doesn’t seem to match. I tried just copying and pasting the log format string that shows up in the Server Admin (then escaping the quotes) and it doesn’t seem to like that either.
Anyone been through this and have a fix?Your AWStats LogFormat parameter is:
%h %l %u %t “%r” %>s %b “%{Referer}i” “%{User-Agent}i”
This means each line in your web server log file need to have the following personalized log format:
%h %l %u %t “%r” %>s %b “%{Referer}i” “%{User-Agent}i”
And this is an example of records AWStats found in your log file (the record number 50 in your log):
24.8.179.250 – – [13/Aug/2005:04:58:50 -0600] “GET /surveys/labmembers/ HTTP/1.0” 200 639This is just a wild guess…
From what I can see on your error statement, it looks to me like there could be a problem on %t
You see, there is a spaec between 58:50 and -0600 and there’s nothing saying to group that with “square bracets” (if that’s the correct term).
Also, it does have more terms on the syntax than in the log, so I think you have to remove the extras.So maybe the correct line would be this instead:
%h %l %u [%t] “%r” %s %bLet me know if it works.
Kyle
ParticipantYes, server clock is using the AD server’s time server. As are the client machines.
-
AuthorPosts