Re: RE: Help on reporting failures correctly from Xferlog format

Aengus <[email protected]>
Newsgroups gmane.comp.web.analog.general
Message-ID <[email protected]>
On 8/7/2008 1:40 AM, Read, Kimberly wrote:
> 
> Hi,
>  
> Well, I have figured out one way around this and that is to convert the 
> last character in the log to an http return code.  I didn't want to have 
> to do that, but it seems to work and then obviously I added a %c to the 
> LOGFORMAT command.  If anyone knows of another way to do this without 
> changing the input file(s), please let me know.

Your original message indicates that you just want to ignore the records 
that end in i, so I presume that you only want to count the records that 
end in c.

 > LOGFORMAT (%j %M %d %h:%n:%j %Y %t %S %b %r %j %j o %j %u ftp %j %j)
 > LOGFORMAT (%j %j %j %j %j %j %j %j %j %j %j i%j)

Just change the first record so that it will only match records that end 
in c, like this:
LOGFORMAT (%j %M %d %h:%n:%j %Y %t %S %b %r %j %j o %j %u ftp %j c)

(Altenatively, just swapping the order of your LOGFORMAt commands might 
work, as it should cause the i records to be matched as "junk" before 
they are parsed as real records.

Aengus
+------------------------------------------------------------------------
|  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
+------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.