On 7/8/99 7:14 PM Mark Wiard ([EMAIL PROTECTED]) wrote:

>After spending way to much time on this I am throwing myself on the
>mercy of the group. The server is an apache, but I gather since it has
>the {referer} and {user-agent} I cannot use the apachelogformat (it does
>not work anyway). So I am attempting to construct a custom log formt.
>
>>From my hosting guys, the contents of the http.conf file
>
>LogFormat "%h %l %u %t \"%r\" %s %b %v \"%{Referer}i\" \"%{User-agent}i\""
>
>This does not really seem to match up with my actual items in the access
>log. My best "guess" at the logformat command line
>
>LOGFORMAT {%s %j %j [%d/%M/%Y:%h:%n%j] "%j %rHTTP"%c%b %F "%j" %B)

>205.188.209.40 - - [01/Jul/1999:00:00:27 -0400] "GET
>/newsstand/current/arlenef.html HTTP/1.0" 200 3878 www.peaksnewsnet.com
>"http://www.peaksnewsnet.com/newsstand/current/index.html" "Mozilla/4.0
>(compatible; MSIE 4.01; AOL 4.0; Windows 98)"
>205.188.209.73 - - [01/Jul/1999:00:01:00 -0400] "GET
>/newsstand/current/letters.html HTTP/1.0" 200 22120 www.peaksnewsnet.com
>"http://www.peaksnewsnet.com/newsstand/current/index.html" "Mozilla/4.0
>(compatible; MSIE 4.01; AOL 4.0; Windows 98)"

These are almost NCSA Combined format, but they have the server name 
added in the middle. Try:

LOGFORMAT (%S %j %u [%d/%M/%Y:%h:%n:%j] "%j%w%r%wHTTP%j" %c %b %v "%f" 
"%B")
LOGFORMAT (%S %j %u [%d/%M/%Y:%h:%n:%j] "%j%w%r" %c %b %v "%f" "%B")
LOGFORMAT (%S %j %u [%d/%M/%Y:%h:%n:%j] "%r" %c %b %v "%f" "%B")

Remember that each of those LOGFORMAT commands should be on one line, I'm 
not sure what the mail system will do to them.

Good Luck
Jason

-----------------
[EMAIL PROTECTED]
-----------------
Dr. Seuss books . . . can be read and enjoyed on several levels. For
example, 'One Fish Two Fish, Red Fish Blue Fish' can be deconstructed
as a searing indictment of the narrow-minded binary counting system.
  -- Peter van der Linden, Expert C Programming, Deep C Secrets


------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to