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
+------------------------------------------------------------------------

Reply via email to