LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-09-2004, 03:23 PM   #1
BSCItech
LQ Newbie
 
Registered: Sep 2003
Location: Beverly, MA
Distribution: Mandrake 9.1
Posts: 4

Rep: Reputation: 0
Question Verbose vsFTP Logging?? (eek!)



Hello all,

My question: Can a verbose log be produced with vsFTP and How?
(Mandrake 9.1.4 w/ vsFTPd 1.02-02)

I've been tooling around the Internet for days looking for a way to make vsFTP produce any kind of verbose log file.

Personally, i dont care if i have to sort through an individual session echo, but i need much more logging than is being produced now (single upload/download entires).

If logging is not available through vsFTP directly, can it be consolidated from other system logs?

Here's what i need, let me know if vsFTP can do it, or if I need to go to another ftp daemon:

1) Logging by user: LogIn/Out time, Uploaded filename with path and size info.
2) Successful/Failed uploads/downloads with time requested and time ended (failed).
3) IP address of user (standard)

Please recommend the most secure ftp daemon that will supply verbose enough logging to obtain this information (I can use PERL or another logging parser to get the desired records, but Legal dept wants this capability installed ASAP )

Thanks in advance!

-JonG
 
Old 08-26-2004, 11:00 AM   #2
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Rep: Reputation: 30
logging

John, i would very much like to know more about this issue also. Currently my vsftp logs only tell me file uploads and downloads, i want more detailed info.

Any help would be great!!


Thanks
 
Old 08-26-2004, 11:26 AM   #3
BSCItech
LQ Newbie
 
Registered: Sep 2003
Location: Beverly, MA
Distribution: Mandrake 9.1
Posts: 4

Original Poster
Rep: Reputation: 0
Lightbulb

Sopiaz57:

Edit your vsftp.conf file for these entries:

# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# You may override where the log file goes if you like. The default is shown
# below.
xferlog_file=/users/vsftp_nobody/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
xferlog_std_format=NO


#The log_ftp_protocol=YES will log every FTP protocol transaction between the client and the server (this is the most detailed log you can get).
log_ftp_protocol=YES


Hope this helps others who are having this issue (took me nearly a week to find this on google and the help/man files ).

-JonG
 
Old 08-26-2004, 12:48 PM   #4
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Rep: Reputation: 30
Jon, I added "log_ftp_protocol=YES " to my vsftpd.conf and stopped/started the server, still no verbose logging.
 
Old 08-26-2004, 12:55 PM   #5
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Rep: Reputation: 30
AH, heres the prob.

log_ftp_protocol
When enabled, all FTP requests and responses are logged, providing the option xferlog_std_format is not enabled. Useful for debugging.
 
Old 08-26-2004, 01:41 PM   #6
sopiaz57
Member
 
Registered: Apr 2003
Distribution: RH 8
Posts: 246

Rep: Reputation: 30
After fooling around a bit, I realized that I never even needed to add this directive,

log_ftp_protocol =yes


all you need to do is comment out this directive

xferlog_std_format=YES



is this true for your install??
 
Old 08-26-2004, 09:23 PM   #7
BSCItech
LQ Newbie
 
Registered: Sep 2003
Location: Beverly, MA
Distribution: Mandrake 9.1
Posts: 4

Original Poster
Rep: Reputation: 0
Tried that on my Mandrake9 and the only change was the formatting of the (successful) upload/download entries (doesnt log anything more than the original, just logs it differently).

Then again, I got the logging working back in early march04, so i havent realy played much with it. (once it works, clients wont usually pay for 'inquiring minds" to roam).

right now the "debugging" level logging works fine (and provides C.Y.A. in blame-game situations)... I just use a webpage-based pearl script to parse out the reports that people want from the log file.

Anyway, hope this helped you get the logging you were looking for.

l8r
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dont make this mistake :eek: trey85stang Slackware 19 08-23-2005 03:59 AM
eek! My KDE is haunted fannymites Linux - Software 7 01-08-2005 06:35 PM
ahhh I deleted RPM please help!!:eek: unixmad Linux - Newbie 12 10-02-2004 12:06 PM
vsftp logging sopiaz57 Linux - General 1 08-27-2004 08:33 PM
:eek: X problems!! Nerd2 Linux - Software 3 05-05-2003 11:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration