Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

JasonAlt/GridFTP-Transfer-Logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PURPOSE
-------
This module catches the GridFTP server's call to globus_i_gfs_log_transfer() and
transforms some arguements to assist GridFTP statics. The file name is quoted to
simplify handling of names with spaces, and sharing information is added. For
example:

Aug 7 14:31:21 hpss01 globus-gridftp-server[14395]: Transfer stats: DATE=20140807193121.219285 HOST=hpss01.ncsa.illinois.edu PROG=globus-gridftp-server NL.EVNT=FTP_INFO START=20140807193120.328202 USER=jalt FILE=/u/staff/jalt/project/gt5.2.5-all-source-installer.tar BUFFER=94800 BLOCK=262144 NBYTES=321259520 VOLUME=/ STREAMS=1 STRIPES=1 DEST=[141.142.176.62] TYPE=STOR CODE=226 

 becomes: 

Aug 7 14:31:21 hpss01 globus-gridftp-server[14395]: Transfer stats: DATE=20140807193121.219285 HOST=hpss01.ncsa.illinois.edu PROG=globus-gridftp-server NL.EVNT=FTP_INFO START=20140807193120.328202 USER=jalt SHARE=0 SHAREE=none FILE="/u/staff/jalt/project/gt5.2.5-all-source-installer.tar" BUFFER=94800 BLOCK=262144 NBYTES=321259520 VOLUME=/ STREAMS=1 STRIPES=1 DEST=[141.142.176.62] TYPE=STOR CODE=226 

OVERVIEW
--------
Just build the library and LD_PRELOAD it into the GridFTP server process.

BUILD
-----
In order to build this library, you must have these RPMs installed:
	- globus-gridftp-server-devel
	- globus-core

INSTALLATION
------------
Put the library in a location accessible to the GridFTP server. For example, install it
into /usr/local/lib64/.

CONFIGURATION
-------------
LD_PRELOAD the library into the GridFTP process. If you launch GridFTP from xinetd:

  env += LD_PRELOAD=/usr/local/lib64/libtransfer_logger.so

Good Luck!

About

Cleanup and add additional messages to standard logging

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published