Re: [analog-help] Logformat to strip blanks spaces

2004-08-09 Thread analog-help
On Monday, August 09, 2004 2:06 AM [GMT],
Raji Arulambalam [EMAIL PROTECTED] wrote:

 Hi what LogFormat settings could I use to either ignore the browser
 or include it.? Can someone give me an example. I have read the pages
 of logformat at the Analog site.

You might not be able to, based on the example you provided.

The LOGFORMAT specifies a series of tokens, and Analog parses each line,
dividing it into each token, based on whatever separator character
occurs between each token in the LOGFORMAT.

Normally, a space is used as the separator, so you have %S %u %Y, etc.
If a token is going to have spaces within it, such as the username or
the Browser string, then you have to either get your server to quote the
string, or convert the spaces to something else (+, for example).
Alternatively, if that particular token is the last token in the log
entry, you can tell Analog to just use the rest of the line.

The problem here is that your Browser string isn't quoted, and it isn't
a predictable number of words long.

Because Agent strings are usually of the form Browser (details) You
might get away with something like %S %u %j (%j) %j %Y., but that
might not work for everything.

Aengus

+
|  TO UNSUBSCRIBE from this list:
|http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  Digest version: http://lists.isite.net/listgate/analog-help-digest/
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
+


[analog-help] Logformat to strip blanks spaces

2004-08-08 Thread analog-help
Hi what LogFormat settings could I use to either ignore the browser or include it.? 
Can someone give me an example. I have read the pages of logformat at the Analog site.


#Software: Microsoft(R) Internet Security and Acceleration Server 2000
#Version: 1.0
#Date: 2004-08-09 00:00:00
#Fields: c-ip   cs-username c-agent sc-authenticateddatetime
s-svcname   s-computername  cs-referred r-host  r-ipr-port  time-taken 
 cs-bytessc-bytescs-protocol cs-transports-operation 
cs-uri  cs-mime-types-object-source sc-status   s-cache-inforule#1  rule#2
203.99.66.6 anonymous   Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) 
 N   2004-08-09  00:00:00W3ReverseProxy  CELERIS -   
www.envbop.govt.nz  172.16.0.9  80081735634 84730   httpTCP
 GET http://web.ebop.int:8008/water/media/pdf/economic%20evaluation.pdf  
multipart/x-byteranges; boundar Inet206 0x40800040  EnvBOP  -
203.98.57.67anonymous   Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; 
Q312461; .NET CLR 1.0.3705; .NET CLR 1.1.4322)   N   2004-08-09  00:00:05  
  W3ReverseProxy  CELERIS -   www.envbop.govt.nz  172.16.0.9  8008
313 596 23243   httpTCP GET 
http://web.ebop.int:8008/weeds/weed121.asp  text/html   Inet200 
0x40020010  EnvBOP  -

Thanks
Email disclaimer: This email and any attachments are confidential. If you are not the 
intended recipient, do not copy, disclose or use the contents in any way. If you 
receive this message in error, please let us know by return email and then destroy the 
message. Environment Bay of Plenty is not responsible for any changes made to this 
message and/or any attachments after sending.
**
This e-mail has been checked for viruses and no viruses were detected.
+
|  TO UNSUBSCRIBE from this list:
|http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  Digest version: http://lists.isite.net/listgate/analog-help-digest/
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
+