Link to home
Start Free TrialLog in
Avatar of nramskill
nramskill

asked on

Log all uploaded files with ProFTP

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.
Avatar of slyong
slyong

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"
ASKER CERTIFIED SOLUTION
Avatar of slyong
slyong

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nramskill

ASKER

Okay, thanks for that, let me give it a try....
Thank you very much slyong.  That is working perfectly
You are welcome.