[analog-help] RE: LogFormat nightmare.

Kevin Band Kevin.Band at jobpartners.com
Tue Sep 4 04:47:16 PDT 2007


Discovered that there isn't actually anything wrong with the LogFormat
commands that I'm specifying, the problem is that I'm trying to specify
the LogFormat within a config file, but specify the log-file from the
command line.
 
If the config file doesn't contain a LogFile entry, then the LogFormat
entry is ignored, even though the log file is provided in the command
line.
 
Is there any way around this ?

________________________________

From: Kevin Band 
Sent: 04 September 2007 12:17
To: 'analog-help at lists.meer.net'
Subject: LogFormat nightmare.


We have defined a custom log in our Apache config file :-
 
  LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\" (%T)" combined
 
No matter what  I do, I cannot get analog to recognise this format,
every entry is rejected, here is an example of the debug output :-
 
C: 218.80.221.91 - - [23/May/2007:07:17:44 +0000] "GET / HTTP/1.0" 302
214 "-" "-" (0)
C:
*
C: 217.147.30.70 - - [23/May/2007:07:23:23 +0000] "GET / HTTP/1.0" 302
214 "-" "-" (0)
C:
*
C: 62.244.172.250 - - [23/May/2007:13:55:30 +0000] "GET /visitors/
HTTP/1.0" 302 223 "http://bigbrother.jhq/" "Mozilla/5.0 (Windows; U;
Windows NT 5.1; en-GB; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3" (0)
C:
*
Here is my LogFormat definition 
  LOGFORMAT (%S %j %u [%d/%M/%Y:%h:%n:%j +%j] "%j%w%r%wHTTP%j" %c %b
"%f" "%B" (%T))
 
I have also tried 
  APACHELOGFORMAT (%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\" (%T))
 
And various other entries, but not matter what I do, it complains about
the "(" in the final field.
 
Can anybody help ?


The information contained in this email or any attachment is confidential and are intended for the exclusive use of the individual(s) or organisation specified above. Any unauthorised dissemination or copying of their contents and any mis-use or wrongful disclosure of information contained in it, is strictly prohibited and may be illegal. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of any organisation or employer. If you have received this message in error, please immediately delete this email and any attachments or telephone the sender on +44 (0)208 834 0400. Please rely on your own virus check as no responsibility is taken by the sender for any damage rising out of any virus infection this communication may contain.

Jobpartners registered in England and Wales (Registered No. 3669030)
Registered Office: 1-15 King Street, London, W6 9HR United Kingdom

Jobpartners Poland z.o.o . NIP: 676-23-28-162, kapitał zakładowy: 50.000 zł, ul. Wadowicka 8A 30-415 Kraków KRS nr 0000261881,
NIP: 526-00-02-151, kapitał zakładowy: 50.000 zł, Sąd Rejonowy dla m.st. Warszawy w Warszawie, XII Wydział Gospodarczy KRS nr 0000177321.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.meer.net/pipermail/analog-help/attachments/20070904/fb340f29/attachment.html


More information about the analog-help mailing list