On 1/14/01 7:50 AM Jesse Reynolds ([EMAIL PROTECTED]) wrote:

>I'm using webstar, and am logging a thing that seems to only exist on Mac 
>acgi's, called 'path_args'. A path arg is what's after the '$' and before 
>the first '?' in a url. Eg:
>
>http://someserver.com/application.acgi$welcome_page?user=jesse
>
>in the above url, the PATH_ARG is "welcome_page". 
>
>how can I set up an extra report in analog for PATH_ARGS? 
>
>FYI, here is two lines from the webstar log file. the first line is the 
>log format line, the second line is a sample log entry:
>
>!!LOG_FORMAT DATE TIME RESULT HOSTNAME URL PATH_ARGS SEARCH_ARGS REFERER 
>BYTES_SENT
>01/14/01       23:29:04        OK  
>       10.0.1.81       :application.acgi       welcome_page    user=jesse             
> 28901   

Analog will ignore PATH_ARGS by default, but you could setup a custom log 
format that tells Analog to read that field as if it was another field. 
Analog can't parse path args if they are logged in the request, but 
fortunatly WebSTAR logs them in a seperate field.

Try this log format command in your analog.cfg file (or whatever you call 
your configuration file):

logformat (%m/%d/%y\t%W%h:%n:%j\t%C\t%S\t%r\t%u\t%q\t%f\t%b\t)

which will put the path arg into the user report. You could put it 
somewhere else if you want, by changing the "%u" in the middle of the 
format string into something else.

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" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to