System: xferlog - ProFTPD server logfileThe xferlog FormatThe default format of the xferlog for ProFTP contains the following information on each line:
Analysing the xferlogWhen analysing the xferlog file, the first thing to look at is the completion-status - the last character in each row. This should always be c (complete) and not i (incomplete) as that indicates a problem with the transfer. This command will return all incomplete transfers: egrep "i$" xferlog
Note: The xferlog file is normall located at /var/log/xferlog Then look at the three characters following the file name. They represent the transfer-type (ascii or binary), any special actions (usually _ meaning none) and the direction (outgoing, incoming or deleted). Typical examples are:
Now, to extract a list of all successfully uploaded files: awk '($12 ~ /^i$/ && $NF ~ /^c$/){print $9}' xferlog
and uploads that were unsuccessful: awk '($12 ~ /^i$/ && $NF ~ /^i$/){print $9}' xferlog
ReferencesSend Feedback |
|
|
© Copyright 2010 Chirp Internet
- Page Last Modified: 22 November 2009
|
|