Книга: Fedora™ Unleashed, 2008 edition
Use /var/log/xferlog to View a Log of Server Transactions
Разделы на этой странице:
Use /var/log/xferlog
to View a Log of Server Transactions
The xferlog
file gives a log of what transactions have occurred with the FTP server. Depending on the settings in the /etc/ftpaccess
file, the contents of this file can contain the files sent or received, by whom, with a date stamp. Table 20.5 lists the fields of this file. The same information can also be found in the corresponding man page included in the wu-ftp
RPM.
TABLE 20.5 /var/log/xferlog
Fields
Field | Description |
---|---|
current-time |
Current local time in the form of DDD MMM dd hh:mm:ss YYYY , where DDD is the day of the week, MMM is the month, dd is the day of the month, hh is the hour, mm is the minutes, ss is the seconds, and YYYY is the year. |
transfer-time |
Total time in seconds for the transfer. |
remote-host |
Remote hostname. |
file-size |
Size of the transferred file in bytes. |
filename |
Name of the file. |
transfer-type |
A single character indicating the transfer type. The types are: |
a for ASCII transfers, |
|
b for binary transfers | |
special-action-flag |
One or more character flags indicating any special action taken by the server. The values are: |
C for compressed files |
|
U for uncompressed files |
|
T for TARed files |
|
- for no special action taken |
|
direction |
Indicates whether the file was sent from or received by the server. |
access-mode |
The way in which the user logged in to the server. The values are: |
a for an anonymous guest user |
|
g for a guest user, corresponding to the guestgroup command in the /etc/ftpaccess file |
|
r for a real user on the local machine |
|
username |
If logged in as a real user, the username. If the access mode was guest , the password is given. |
service-name |
The name of the service used, usually FTP |
authentication-method |
Type of authentication used. The values are: |
0 for none |
|
1 for RFC931 authentication (a properly formed email address) |
|
authenticated-user-id |
This is the user ID returned to the server based on the authentication method used to access the server. An * is used when an authenticated user ID cannot be found. |
completion-status |
A single-character field indicating the status of the transfer. The values are: |
c for a completed transfer |
|
i for an incomplete transfer |
An example of this file is seen in Listing 20.5.
LISTING 20.5 Sample /var/log/xferlog
File with Inbound and Outbound Logging
Mon Sep 3 07:13:05 2001 1 localhost.localdomain 100 /var/ftp/pub/README b o a [email protected] ftp 0 * c
Mon Sep 3 02:35:35 2001 1 helios 8 /var/ftp/pub/configuration a _ o a [email protected] ftp 0 * c
Mon Sep 3 02:35:35 2001 1 helios 8 /var/ftp/pub/temp.txt a o a [email protected] ftp 0 * c
Mon Sep 3 02:35:35 2001 1 helios 8 /var/ftp/pub/tftp-server- 0.17-14.i386.rpm a o a [email protected] ftp 0 * c
Mon Sep 3 02:35:35 2001 1 helios 8 /var/ftp/pub/wu-ftpd-2.6.1- 22.i386.rpm a o a [email protected] ftp 0 * c
Related Fedora and Linux Commands
You use these commands to install, configure, and manage FTP services in Fedora:
? epiphany
— A graphical GNOME browser supporting FTP
? ftp
— A text-based interactive FTP command
? ftpcopy
— Copy directories and files from an FTP server
? ftpcp
— Retrieve data from a remote FTP server, but do not overwrite existing local files
? gftp
— A graphical FTP client for GNOME
? konqueror
— KDE's graphical web browser
? lftp
— An advanced text-based FTP program
? nautilus
— Red Hat's graphical file explorer and browser
? ncftp
— A sophisticated, text-based FTP program
? sftp
— Secure file transfer program
? smbclient
— Samba FTP client to access SMB/CIFS resources on servers
? system-config-services
— Red Hat's system service GUI admin utility
? vsftpd
— The Very Secure FTP daemon
? webcam
— A webcam-oriented FTP client included with xawtv
- Conventions used in this document
- Chapter 15. Graphical User Interfaces for Iptables
- Terms used in this document
- What NAT is used for and basic terms and expressions
- Раздел uses
- User-land setup
- Compiling the user-land applications
- User specified chains
- User-land states
- System tools used for debugging
- Setting up user specified chains in the filter table
- Internet Service Providers who use assigned IP addresses