RE: Help on reporting failures correctly from Xferlog format

"Read, Kimberly" <[email protected]>
Newsgroups gmane.comp.web.analog.general
Message-ID <BD94FD014E098D4788BF7BE44A084B7E234DCDDF2C@G1W0485.americas.hpqcorp.net>
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.

So I Changed from this:
Tue May  6 00:01:11 2008 1 adsl-71-146-156-211.dsl.pltn13.sbcglobal.net 0 /ftp/ftp2/pub/information_storage/software/fwrev.bin b _ o a IEUser@ ftp 0 * c
Tue May  6 00:01:18 2008 9 183.red-83-32-231.dynamicip.rima-tde.net 32768 /ftp/ftp2/pub/softpaq/sp33501-34000/sp33867.exe b _ o a IEUser@ ftp 0 * i

To:
Tue May  6 00:01:11 2008 1 adsl-71-146-156-211.dsl.pltn13.sbcglobal.net 0 /ftp/ftp2/pub/information_storage/software/fwrev.bin b _ o a IEUser@ ftp 0 * 200
Tue May  6 00:01:18 2008 9 183.red-83-32-231.dynamicip.rima-tde.net 32768 /ftp/ftp2/pub/softpaq/sp33501-34000/sp33867.exe b _ o a IEUser@ ftp 0 * 404



thanks,

kimmer

________________________________
From: Read, Kimberly
Sent: Wednesday, August 06, 2008 9:55 PM
To: '[email protected]'
Subject: Help on reporting failures correctly from Xferlog format

Hi,

Analog 6.0 is working great, except that it is not reporting failures.  In fact, when I parse the FTP (xferlog) logfiles, it reports that they were all successful.  Is there anything that I can do to either fix the logfiles themselves (would prefer not to do this), or is there something I can do with the LOGFORMAT to tell it how to do this correctly.

Here is an excerpt of the logfile:

Tue May  6 00:01:07 2008 1 d75-157-1-2.bchsia.telus.net 0 /ftp/ftp2/pub/information_storage/software/fwrev.bin b _ o a IEUser@ ftp 0 * c
Tue May  6 00:01:11 2008 1 adsl-71-146-156-211.dsl.pltn13.sbcglobal.net 0 /ftp/ftp2/pub/information_storage/software/fwrev.bin b _ o a IEUser@ ftp 0 * c
Tue May  6 00:01:18 2008 9 183.red-83-32-231.dynamicip.rima-tde.net 32768 /ftp/ftp2/pub/softpaq/sp33501-34000/sp33867.exe b _ o a IEUser@ ftp 0 * i

Here is an excerpt of the configuration file that I am using:

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)
LOGFILE C:\data\hpdotcom\temp\may6\*.xferlog
OUTFILE Report2.html
HOSTNAME "HP.COM FTP Analysis of May 6, 2008"
#
# You probably don't need to change anything below this until you are
# experienced.
#
ERRFILE errors.txt
GENSUMLINES ALL
...

Lastly, the report looks like this:


Successful requests: 3,652,172
Average successful requests per day: 1,787,602
Successful requests for pages: 17,901
Average successful requests for pages per day: 8,761
Distinct files requested: 31,498
Distinct hosts served: 759,657
Corrupt logfile lines: 1
Data transferred: 25.32 terabytes
Average data transferred per day: 12.39 terabytes

Thank you in advance,

kimmer

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