Can't believe I've spent all morning banging my head against the wall on this 
one and then find the answer myself just when I've given up and asked for help. 
 I've just discovered that I've been trying to use the wrong command in the 
config file, should be using "DefaultLogFormat" instead of "LogFormat" when 
specifying the log file from the command line.

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Band
Sent: 04 September 2007 12:47
To: analog-help@lists.meer.net
Subject: [analog-help] RE: LogFormat nightmare.


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@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. 



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.
+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Analog Documentation: http://analog.cx/docs/Readme.html
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------

Reply via email to