Log all uploaded files with ProFTP

Posted on 2006-05-31
Last Modified: 2010-03-18
Hi All

I am looking for a way to log the filenames of all files uploaded to our RH8 server through the ProFTP service.  

The situation is :

We are using the Proftp server as a middleman to transfer files between two businesses.  Software at Business A uploads the files to the server, and other software at Business B downloads the files for processing.  Business A knows which files they have uploaded, but if Business B fails to download one of the files for whatever reason, then we need some kind of proof that the file was indeed uploaded bu Business A and was in the FTP directory.

At the moment i can see when the user opens and closes a session, but not what files they have uploaded to the server.  Is this something that Proftp can be configured to do, log the filenames that have been uploaded, or will i need a linux script/additional software that will constantly check the FTP directory for changes.  I was thinking of piping the result of the ls command to a file, and checking this for changes every couple of minutes, but it would be nice it there was another way of doing this.  

Any suggestions would be greatly appreciated.
Question by:nramskill
    LVL 24

    Expert Comment

    You can change the LogFormat directive in Proftpd configuration file.  Add %f or %F (%f for absolute path+filename, %F is the relative path+filename)

    LogFormat default "%h %l %u %t \"%r\" %s %b %F"
    LVL 24

    Accepted Solution

    btw, if you want, you can also make the TransferLog to a separate file using

    TransferLong /var/log/proftpd.transfer

    Author Comment

    Okay, thanks for that, let me give it a try....

    Author Comment

    Thank you very much slyong.  That is working perfectly
    LVL 24

    Expert Comment

    You are welcome.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now