On Apr 19, 2007, at 11:35 AM, [EMAIL PROTECTED] wrote:
I want to analyze my SERV-U FTP logfile. Unfortunately, I have file names or directories with spaces on the server and these files do not get reported.

Can someone please tell me how to do it right?!

Current logformat goes like this:

LOGFORMAT "[%j] %j %d%M%y %h:%n:%j - (%j) Sent file %r successfully (%j kB/sec - %b Bytes)"

Error.txt shows me lines like the ones below, that could not be processed:

[4] Tue 03Apr07 13:15:00 - (000101) Received file d:\ftproot\privat \software\via hyperion\via_hyperionpro_v510a.zip successfully (386 kB/sec - 7795214 Bytes) [4] Wed 11Apr07 22:55:43 - (000013) Received file d:\ftproot\privat \software\altiris\applications\firefox 2.0.2.vsa successfully (260 kB/sec - 35297153 Bytes) [3] Sat 14Apr07 21:53:45 - (000039) Sent file d:\ftproot\privat \software\altiris\applications\the gimp.vsa successfully (80.9 kB/ sec - 25328286 Bytes) [3] Sun 15Apr07 00:58:37 - (000073) Sent file d:\wwwroot \200102_thailand\images\tauchbild film iv.jpg successfully (169 kB/ sec - 87996 Bytes)

Any help welcome

You could write something that would search for a space inbetween "d:" and " successfully" and change it to a proper URL with %20. My sed foo is off today, so it may be similar to:
sed -i 's/(d:)(.?)( )(.?)( successfully)/\1\2%20\3\4/' logfilename

This will only catch the first space in the file path, so multiple spaces will either require multiple runs, or more sed foo than I have today. Leave off the "\4" if you want to remove the " successfully altogether

j.
----
Jackie Meese, Systems Administrator & eLSDI Team Leader
Institute for Distance and Distributed Learning, Va Tech
Phone: 231-3682                         http://www.iddl.vt.edu/
3027 Torgersen Hall                     Mail Code: 0445
I am, and always will be, an idiot.


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

Reply via email to