Sorry to bug the list again but does anyone have any suggestions on how 
I can analog to parse my log file even though it contains lines with 
varying logging formats?

I tried adding LOGFORMAT and APACHELOGFORMAT commands but it didn't help.

Jc

Jean-Christian Imbeault wrote:

> But I did put all the log formats into my analog.cfg file. I have the 
> following lines:
>
> APACHELOGFORMAT (%h %l %u %t \"%r\" %>s %b \"REF: %{Referer}i\" 
> \"%{User-Agent}i\")
> APACHELOGFORMAT (%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" 
> \"%{User-Agent}i\")
> LOGFORMAT COMMON
> LOGFORMAT COMBINED
>
>
> Shouldn't this work?
>
> Jc
>
> Aengus wrote:
>
>> Jean-Christian Imbeault <[EMAIL PROTECTED]> wrote:
>>
>>> Analog doesn't complain at all and successfully creates a report.
>>>
>>
>> Because Analog decides which formats it is going to use to parse the log
>> by looking at the first line. Any subsequent lines that don't match that
>> format will be invalid.
>>
>>> Is this a bug?
>>>
>>
>> No.
>>
>>> Why does it complain about a valid line?
>>>
>>
>> Because it doesn't match the format that Analog is using to parse the
>> logfile.
>>
>>> How can I get analog to parse my log file properly?
>>>
>>
>> By telling Analog about all the different LOGFORMATs that you have in
>> your logfile. Analog will assume that there is only one LOGFORMAT in use
>> unless you explicitly tell it otherwise.
>>
>> Aengus
>>
>


+------------------------------------------------------------------------
|  This is the analog-help mailing list. To unsubscribe from this
|  mailing list, go to
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  List archives are available at
|    http://www.mail-archive.com/[email protected]/
|    http://lists.isite.net/listgate/analog-help/archives/
|    http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------

Reply via email to