• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

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.
0
nramskill
Asked:
nramskill
  • 3
  • 2
1 Solution
 
slyongCommented:
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"
0
 
slyongCommented:
btw, if you want, you can also make the TransferLog to a separate file using

TransferLong /var/log/proftpd.transfer
0
 
nramskillAuthor Commented:
Okay, thanks for that, let me give it a try....
0
 
nramskillAuthor Commented:
Thank you very much slyong.  That is working perfectly
0
 
slyongCommented:
You are welcome.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now